Re: waveInOpen, window handle from VB

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Wed, 11 Jan 2006 18:31:03 -0800, spxdev wrote:

> Hi, I have chosen CALLBACK_WINDOW in waveInOpen, and was planning to receive
> messages from my Visual Basic form. Things get a little more complicated
> because waveInOpen is actually in a C++ DLL. I passed the form's handle to
> the DLL and used that for the dwCALLBACK (HWND) parameter. Is this a valid
> move?

It's valid but wouldn't be my choice.

> Because my VB app isn't responding to the messages as I'd hoped and I'm
> not sure whether it's because I got MessageWindow wrong (I'm developing for
> Smart Device) or whether passing the form's handle to the DLL is invalid.
> Thanks for any help!

I would look for another method where you could keep things encapsulated in
the DLL. You could create an invisible window from the DLL, or use the
event method.
.



Relevant Pages