Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WINMM.DLL and Saving File Names
Message
De
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:
00552339
Vues:
14
>George,
>
>I have written a little program to test the results of the declaration that you gave me and I just cannot get it to work. Here is my code, can you tell what is wrong?
>
>declare integer GetShortPathName in Win32API string @lpszLongPath, string @lpszShortPath, integer cchBuffer
>
>lnSize = 100
>lcBuffer = Space(lnSize)
>lcFile = PutFile([Save file as:], [], [wav])
>lnResult = GetShortPathName(@lcFile, @lcBuffer, lnSize)
>?Left(lcBuffer, lnResult)
>
>return
>
>lnResult is always 0
>lcBuffer is remains at space(100)

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 :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform