Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WINMM.DLL and Saving File Names
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
WINMM.DLL and Saving File Names
Divers
Thread ID:
00552081
Message ID:
00552081
Vues:
84
I have a problem with saving a file using the WINMM.DLL. Having declared the dll, if I issue these commands:

ThisForm.FileName = PutFile([Save file as:], [], [wav])
if !empty(ThisForm.FileName)
if [ ] $ ThisForm.FileName
messagebox([Spaces are not allowed anywhere in the path or name of this file]+chr(13)+chr(10)+;
[You are trying to save this to: ]+ThisForm.FileName,16,[Illegal Path or Name])
else
SendString = chr(34)+[save capture ]+ThisForm.FileName+chr(34)
mciSendString(&SendString,"0",0,0)
ThisForm.cmdGroup.Command1.Enabled = .F.
ThisForm.cmdGroup.Command2.Enabled = .F.
This.Enabled = .F.
ThisForm.CreateLink
endif

the file is saved properly as long as there are no spaces in ThisForm.FileName. So there are two possible options:

1. Someone can instruct me as to how to save a file name path with spaces through the dll.

2. Someone can instruct me as to how to convert the file name path with spaces to and C:\PROGRA~1\MYWave.wav format.

If anyone can answer either of these questions it would be most helpful.

TIA

DJ Hunt :o)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform