Re: using PlaySound within a dll
- From: "MikeD" <nobody@xxxxxxxxxxx>
- Date: Thu, 4 Aug 2005 12:53:08 -0400
"stacy" <stacyirish@xxxxxxxxxxxxx> wrote in message
news:1123173926.950906.206870@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I have tried app.hInstance and I thought it must be wrong since the
> sound did not play... I guess my problem may not be the hModule
> parameter. PlaySound is returning true when I run it but I still do
> not hear anything... and yes, the sound is turned up though I'm sure I
> must be doing something equally stupid since I can't get it to work.
>
> I had read to use PlaySound and not sndPlaySound but I have tried both
> and gotten the same result.
It won't work within the IDE because the hInstance is actually that of VB.
Compile your project(s) and run those and it should work.
--
Mike
Microsoft MVP Visual Basic
.
- Follow-Ups:
- Re: using PlaySound within a dll
- From: stacy
- Re: using PlaySound within a dll
- References:
- using PlaySound within a dll
- From: stacy
- Re: using PlaySound within a dll
- From: Ken Halter
- Re: using PlaySound within a dll
- From: stacy
- Re: using PlaySound within a dll
- From: Bob Butler
- Re: using PlaySound within a dll
- From: stacy
- using PlaySound within a dll
- Prev by Date: Re: using PlaySound within a dll
- Next by Date: Re: using PlaySound within a dll
- Previous by thread: Re: using PlaySound within a dll
- Next by thread: Re: using PlaySound within a dll
- Index(es):
Relevant Pages
|