Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WINMM.DLL and Saving File Names
Message
 
À
05/09/2001 01:06:28
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00552081
Message ID:
00552425
Vues:
18
>Though I didn't play too much with API, I think you should
>
lnResult = GetShortPathName(@lcFile, @lcBuffer, @lnSize)
>?Left(lcBuffer, lnSize)
>* or
>?Left(lcBuffer,at(chr(0), lcBuffer)-1)
>
>Try this before the real API gurus wake up :)

No luck on this either. I just can't seem to make it work. Here is a more simple approach to the application that didn't work either.

DECLARE INTEGER GetShortPathName IN Win32API STRING, STRING, INTEGER

lcLongFile = "c:\program files\somefolder\my file name.doc"
lcBuffer = SPACE(511)
lnBufferSize = 511
lnShortPathLen = GetShortPathName(lcLongFile, @lcBuffer, lnBufferSize)

lcShortPath = LEFT(lcBuffer, lnBufferSize)

MessageBox(lcShortPath,16,[Test])

return
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform