Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetLongPathName
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00618327
Message ID:
00618588
Views:
21
>>>Sorry,
>>>I mean http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/filesio_2cv9.asp
>>>
>>>Remarks
>>>Windows 98/Me: GetLongPathNameW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems(http://msdn.microsoft.com/library/en-us/win32/unilayer_4wj7.asp).
>>>
>>>In VFP you should declare the Platform SDK unction this way:
>>>
>>>Declare Long GetLongPathName in Kernel32.DLL ;
>>>   String @ lpszShortPath, ; && file name
>>>   String @ lpszLongPath,  ; && path buffer
>>>   Long cchBuffer            && size of path buffer
>>>
>>>
>>>Sample usage:
>>>
>>>ShortPath = 'C:\progra~1'
>>>LongPath = Space(1000)
>>>PathLen=GetLongPathName(ShortPath, @LongPath, 1000)
>>>LongPath = Left(LongPath, PathLen)
>>>
>>>
>>>HTH
>>
>>Venelina,
>>Thanks for the help. I tried GetLongPathName, but the problem is it does not work in Win95 or NT3.5.
>>
>>Looking into FindFirstFile now.
>
>I've posted an example of the usage of this function in the download section. Look for "Windows File Names"
George,
Thanks, it's just what I was looking for!
Previous
Reply
Map
View

Click here to load this message in the networking platform