#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    7
    Rep Power
    0

    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. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,624
    Rep Power
    4247
    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 04:38 PM.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    7
    Rep Power
    0

    Thanks


    Thanks a lot !! It worked perfectly

    - Yeda Anna

IMN logo majestic logo threadwatch logo seochat tools logo