Re: using PlaySound within a dll



"stacy" <stacyirish@xxxxxxxxxxxxx> wrote in message
news:1123169420.438985.231850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
> I am trying to use PlaySound within a dll to play a .wav located in a
> resource file which is also in the same dll. I believe the trouble is
> that I cannot figure out how to get the hInstance of the dll to pass to
> PlaySound (the hModule parameter). Does anyone know how to do this or
> am I way off?

See:

Playing a WAV File stored as a VB6
http://groups.google.com.my/group/microsoft.public.vb.winapi/browse_thread/thread/e79ad51bc64d5215/04ca60613025a034?lnk=st&q=wav+resource+-dotnet+group:*.vb.*&rnum=4&hl=en#04ca60613025a034


--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..


.



Relevant Pages