VS 2015 migration: FDO common

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

VS 2015 migration: FDO common

Karsten Winter

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


_______________________________________________
fdo-internals mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fdo-internals

Fdo_Unmanaged_Src_Common_Io_FileStream.cpp.patch (1K) Download Attachment