Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Play a WAV
Message
De
10/10/2002 15:40:09
 
 
À
10/10/2002 15:23:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00710023
Message ID:
00710035
Vues:
15
>INstalling Norton Anti-virus 2003 has cause my internal VFP application to stop making sound. It had been doing default windows events on msgbox() commands, so the user would hear a beep after saving a record, etc.
>
>They swear they need those beeps.
>
>what is the easiest way to play a WAV file 'manually ' in VFP???

Sure - just fire them with the _ShellExecute class from the _environ.vcx class library in the FFC:
oShellExec = NEWOBJECT('_ShellExecute','_environ.vcx')
oShellExec.ShellExecute('MyNeededSound.WAV')
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform