[fdo-internals] VS 2015 migration: FDO common
Karsten Winter
karsten.winter at autodesk.com
Tue Aug 18 07:41:46 PDT 2015
Hi all
I'm currently migrating the projects to Visual Studio 2015.
Some errors occur with the new compiler for which I would like to get a review for the solution. The first part is about FDO common part.
Fdo\Unmanaged\Src\Common\Io\FileStream.cpp
Error:
FILE Encapsulation
In previous versions, the FILE type was completely defined in <stdio.h>, so it was possible for user code to reach into a FILE and modify its internals. The stdio library has been changed to hide implementation details. As part of this, FILE as defined in <stdio.h> is now an opaque type and its members are inaccessible from outside of the CRT itself.
Solution:
-> Figure out read/write capabilities with fstat.st_mode, which gives only the status of the file on the disc but not the real time opened mode
-> This is different to the previous FILE property "_flag", which is not available anymore since VC++ v140.
Best regards
Karsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/fdo-internals/attachments/20150818/5b7bc998/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fdo_Unmanaged_Src_Common_Io_FileStream.cpp.patch
Type: application/octet-stream
Size: 932 bytes
Desc: Fdo_Unmanaged_Src_Common_Io_FileStream.cpp.patch
URL: <http://lists.osgeo.org/pipermail/fdo-internals/attachments/20150818/5b7bc998/attachment.obj>
More information about the fdo-internals
mailing list