May 27th, 2004, 02:32 PM
GetLongPathNameA problems on WinNT
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.
May 27th, 2004, 03:17 PM
Do you mean Windows NT 4.0?
GetLongPathName is not supported on NT 4.0, see MSDN:
A workaround (also from msdn):
Client: Included in Windows XP, Windows 2000 Professional, Windows Me, and Windows 98.
Server: Included in Windows Server 2003 and Windows 2000 Server.
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.
May 27th, 2004, 04:15 PM
Marc, you the man!
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!