Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Playing a WAV file in the init() Method
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00499683
Message ID:
00499856
Views:
15
Alonso,

The code works for me. Usually the error message you are getting means that the API function has not been properly declared. Make sure the spelling and capitalization of your declaration exactly matches your call. Otherwise, Try;
*	Find out if this machine has a sound card.
*	Return number of devices with WAVE playing capability
DECLARE INTEGER WaveOutGetNumDevs IN WinMM

LOCAL lnDevices

lnDevices = WaveOutGetNumDevs()

IF lnDevices > 0
     SET BELL TO FULLPATH( "startup.wav" )
     ?? CHR( 7 )
ENDIF
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform