Re: waveInOpen, window handle from VB
- From: "Chris P. [MVP]" <msdn@xxxxxxxxxxxx>
- Date: Thu, 12 Jan 2006 09:10:30 -0500
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.
.
- Prev by Date: Re: acmStreamOpen
- Next by Date: Floating point overflow in SetFx
- Previous by thread: acmStreamOpen
- Next by thread: Floating point overflow in SetFx
- Index(es):
Relevant Pages
|