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:
00499782
Views:
15
>>Alonso,
>>
>>Here is how I handle startup sounds. There are many other possibilities.
>>
>>*	Find out if this machine has a sound card.
>>*	Return number of devices with WAVE playing capability
>>DECLARE INTEGER WaveOutGetNumDevs IN WinMM
>>
>>IF ( WaveOutGetNumDevs() > 0 )
>>     SET BELL TO FULLPATH( "startup.wav" )
>>     ?? CHR( 7 )
>>ENDIF
>>
>
>The Set Bell Thing worked, but just after a little windows reboot! :)
>
>James, when i call WaveOutGetNumDevs() in the IF condition, i get this error message:
>
>Cannot find entry point WaveOutGetNumDevs in the DLL.
>
>Is the function name right??
>
>Thanks to all of you, guys!!
>
>Alonso

Make sure the DLL is registered.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Previous
Reply
Map
View

Click here to load this message in the networking platform