-
I am trying to convert The Windows Long Path To Dos Short Path
C:\Program Files\Microsoft\
C:\Progra~1\Micros~1\
I was useing the
Declare Function GetShortPathName Lib "kernel32" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long
but, i get the error
"Can Not Find GetShortPathName Insertion Point In Kernel32"
Is there another way to do this?
-
you don't have the ALIAS in your API call.
Use the code from here: This will show you how to use the API, etc. etc.
http://support.microsoft.com/support.../Q175/5/12.ASP
I see you didn't like my other answer. FINE! BE THAT WAY! Just use your fancy API that is less code and more reliable. I DON'T CARE! :)
Tom
-
See Post
http://www.vb-world.net/ubb/Forum1/HTML/010875.html
Ruchi
[This message has been edited by Ruchi (edited 01-08-2000).]