Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Playing sound in OLE Control - how?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00212291
Message ID:
00212356
Vues:
23
>>>Hello,
>>>I want to play a certain Wav-sound by pressing a button. I inserted an OLE control onto my form, bound to a wav file.
>>>But I can't figure out, how to trigger the control.
>>>Or is there another way of playing wav sounds in forms?
>>>Thanks for your time!
>>
>>I haven't tried this, so this is off the top of my head. There are ActiveX controls that are designed to play sounds of various types. What their requirements are I have no idea off the top of my head. (I'll know by tomorrow though) They should take advantage of installed sound capabilities. When I'm working on a game, I use the DirectX tools to provide sounds. But then I'm working with C++.
>>
>>Regards,
>>
>>Jason
>
>The easiest way is
>
>x = (name of .wav file)
>SET BELL TO '&x',1
>?? chr(7)
>SET BELL TO

Hi Don,
Works perfect, and so easy! Thanks for the tip!
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform