June 24th, 2003, 01:30 PM
I am trying to use SetFilePointerEx on my Windows 2000 machine. I get the error
'SetFilePointerEx' : undeclared identifier
Error executing cl.exe.
I have included Windows.h and Winbase.h file.
What could be the problem ??
- Yeda Anna
June 24th, 2003, 05:35 PM
Since these functions are available for Win2K and greater only, you may need to define a macro (_WIN32_WINNT=0x0500). See:
http://msdn.microsoft.com/library/de...dk_headers.asp This page also explains why you're getting the "error C2065: undeclared identifier" message.
Also, the SDK that you're using may be out of date (the default SDK that comes with Visual Studio 6 certainly is by now). Microsoft periodically releases new SDKs for use with their products. See:
http://msdn.microsoft.com/library/de...mplete_sdk.asp for how to obtain the SDK and
http://msdn.microsoft.com/library/de...ual_studio.asp for installation instructions.
Please bear in mind that this function only works on Win2k Professional, Win2k Server, XP and Windows Server 2003. Other versions of Windows don't have this function.
Last edited by Scorpions4ever; June 24th, 2003 at 05:38 PM.
June 25th, 2003, 03:09 PM
Thanks a lot !! It worked perfectly
- Yeda Anna