GetLongPathNameA problems on WinNT
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: GetLongPathNameA problems on WinNT

  1. #1
    Join Date
    May 2004
    Posts
    123

    GetLongPathNameA problems on WinNT

    Gurus!

    Is anyone familiar with this problem?

    My application won't even start on Windows NT. The application crashes and this is the error message.

    The procedure entry point GetLongPathNameA could not be located in the dynamic link library KERNEL32.dll


    Any help or direction would be greatly appreciated.

    Thanks.

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,062
    Do you mean Windows NT 4.0?
    GetLongPathName is not supported on NT 4.0, see MSDN:
    Client: Included in Windows XP, Windows 2000 Professional, Windows Me, and Windows 98.
    Server: Included in Windows Server 2003 and Windows 2000 Server.
    A workaround (also from msdn):
    Windows NT and Windows 95: Include an additional header file called NewAPIs.h to make GetLongPathName available on these operating systems. The function is not implemented natively, but by a wrapper that utilizes other native functions on these systems. See the header file for details of the use of preprocessor directives that make the function available. If you do not have this header file, it can be obtained by downloading the most recent SDK from the SDK Update Site.

  3. #3
    Join Date
    May 2004
    Posts
    123
    Marc, you the man!

    Thanks dude!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center