Page 1 of 1

Large file support under WIN32

Posted: 10 Nov 2009, 17:23
by bebu
Hi,
do the FileStreams support large files, i. e. files over 4GB size?
I ask because, the stl from Visual Studio only has support for 32 bit long addresses (sigh finally getting this done in Visual Studio 2010 as it seems), while native api has special functions to deal with it.

Thanks
Benjamin

Re: Large file support under WIN32

Posted: 11 Nov 2009, 12:26
by alex
A disclaimer first: I do not have a definite answer, I just looked at the code.
SetFilePointer is used in the way that supports large files. However, std::streamoff and std::streampos are in the interfaces, so I'd think that, in order to get the large file support, you'd have compile for 64-bit (provided std::streamoff and std::streampos are 64-bit there).