View Single Post
Old 23rd November 2014, 17:32   #23  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by StainlessS View Post
EDIT: I have SDK 2003 installed but can find no docs on _fseek64 and so thought it was not available, also searched include directory.
It does exist in the src\crt\ directory (header an source) , dont know if that means that it is included in libs or not (I assume it is), I shall have to investigate.
Functions like _fseeki64(), _ftelli64() and _fstati64() are from the C-Runtime (CRT), not the Win32 API, and thus will not be found in the Win32 SDK.

And you don't need to link a special library for those CRT functions, because the VC linker will link against the suitable MSVCRTxxx.DLL automatically, unless you explicitly prevent linking of that library.

The CRT headers should be in "VS_INSTALL_PATH\VC\include" (at least that's how it is with recent VisualStudio). Simply include <sys/stat.h> to get _fstati64(), for example.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 23rd November 2014 at 17:44.
LoRd_MuldeR is offline   Reply With Quote