Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Play a WAV
Message
From
10/10/2002 15:40:09
 
 
To
10/10/2002 15:23:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00710023
Message ID:
00710035
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform