Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with set bell command
Message
De
10/01/2006 06:11:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01085060
Message ID:
01085092
Vues:
37
It works Borislav but I cannot use it as it stops the execution of the program till it ends playing the wave.
*---------------- I tried with the snd_async and it seems to work.....
I'll let you know Borislav

I am simulating a slot machine :-)

thank you anyway

PS I already tested the bell setting but it is set to on :-((

>>it could be ok, but I newver tried it.
>>Is it the same of the chr(7) ?
>>I mean, have I to declare each time I have to play a sound ?
>>I have the chr(7) in many methods of the form....
>>
>>>What about:
>>>
>>>
>>>DECLARE INTEGER sndPlaySound IN winmm;
>>>  STRING lpszSound, INTEGER fuSound
>>>#DEFINE SND_SYNC       0
>>>#DEFINE SND_ASYNC      1
>>>#DEFINE SND_NODEFAULT  2
>>>sndPlaySound(WaveFileName, SND_SYNC + SND_NODEFAULT)
>>>
>
>No you must declare it once, but first try it to see if it works :o). BTW did you have somewhere SET BELL OFF? Maybe this cause the problem, but if with debuger works?
>I don't know, never wants to play a WAV in my application.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform