F
Fred Hebert
I am new to .NET and trying to convert some existing code to .NET. The
application that is giving be problems is one that receives status messages
from a device via WM_COPYDATA messages and logs, and/or acts upon them.
In MFC this was easy, but I can't seem to figure out how to set up the
handler in .NET. It should be simple but I am obviously missing something.
Can anyone tell me how to set up a function to receive the messages. Once
I have the pointer to the COPYDATASTRUCT I'm ok.
I think a fragment showing how to declare the function properly is all I
need, or just point to some documentation.
Thanks in advance,
Fred.
application that is giving be problems is one that receives status messages
from a device via WM_COPYDATA messages and logs, and/or acts upon them.
In MFC this was easy, but I can't seem to figure out how to set up the
handler in .NET. It should be simple but I am obviously missing something.
Can anyone tell me how to set up a function to receive the messages. Once
I have the pointer to the COPYDATASTRUCT I'm ok.
I think a fragment showing how to declare the function properly is all I
need, or just point to some documentation.
Thanks in advance,
Fred.