I recently asked for help with the following:
That's my code. The particular wave file runs for about 1 minute. I asked the question, "Is there any way to allow a user to interrupt the wave file while it's playing? Also, while the file is playing, the application is locked up. Is it possible to free it, like with some variation of DoEvents so the user can use the app while the wave file is playing?"
I received this answer:
I can't figure this out. I replaced my code:
with the new suggested code,
and I get an error message that says
before I even run the code
Also, what do I do with the part of the new code that reads:
?
Thanks for you help again!!!!
Mike Kemp
kempmike65@aol.com
Code:
WavFileName = "c:\mywavefile.wav"
x = sndPlaySound(WavFileName, &H0)
I received this answer:
Code:
sndPlaySound( LPCSTR lpszSound, UINT fuSound );
fuSound = SND_ASYNC
Code:
x=sndPlaySound(WavFileName, &H0)
Code:
x=sndPlaySound( LPCSTR lpszSound, UINTfuSound )
Code:
Compile Error
Expected: list separator or )
Also, what do I do with the part of the new code that reads:
Code:
fuSound = SND_ASYNC
Thanks for you help again!!!!
Mike Kemp
kempmike65@aol.com