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:
00499856
Vues:
14
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform