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.