Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Playing a WAV file in the init() Method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00499683
Message ID:
00499782
Vues:
13
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform