|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SetFilePointerEx problem
Hi..
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 ?? Thanks, - Yeda Anna |
|
#2
|
||||
|
||||
|
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/d...sdk_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/d...omplete_sdk.asp for how to obtain the SDK and http://msdn.microsoft.com/library/d...sual_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 04:38 PM. |
|
#3
|
|||
|
|||
|
Thanks
Thanks a lot !! It worked perfectly
- Yeda Anna |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > SetFilePointerEx problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|