S
SM
Hello group,
i'm converting a VB6 application for .NET Framework.
The application depends on a DLL written in standard C.
The C DLL code creates an invisible window with CreateWindow()
with the WndProc function located into the VB.NET code.
Until the code was VB6/C code, they was OK.
Now the VB WndProc receives the startup message correctly
(WM_NCCREATE - WM_CREATE - WM_SIZE - .....)
but when i send (from the C code) custom messages (or
whatever kind of message) with PostMessage(....), using
as handle the same one returned from CreateWindow(..),
the WndProc doesn't receive them ....
I see this messages with Spy++ and all the parameters are OK.
What's the problem ?
Can i still use PostMessage() from C code to send a message
to .NET WndProc function ? I need to leave untouched the DLL ..
Thanks
i'm converting a VB6 application for .NET Framework.
The application depends on a DLL written in standard C.
The C DLL code creates an invisible window with CreateWindow()
with the WndProc function located into the VB.NET code.
Until the code was VB6/C code, they was OK.
Now the VB WndProc receives the startup message correctly
(WM_NCCREATE - WM_CREATE - WM_SIZE - .....)
but when i send (from the C code) custom messages (or
whatever kind of message) with PostMessage(....), using
as handle the same one returned from CreateWindow(..),
the WndProc doesn't receive them ....
I see this messages with Spy++ and all the parameters are OK.
What's the problem ?
Can i still use PostMessage() from C code to send a message
to .NET WndProc function ? I need to leave untouched the DLL ..
Thanks