U
Ubergeek
I have some legacy (C) code that I wnat to use to raise events in a C#
component. Basically, when a condition is true (in the C code), I want
to send a WM_ message (using Win32 API from the C code) to a C#
"listener" component which will then handle the event and any data sent.
So basically (in my C code):
void foo()
{
....
SendMessage(hWnd, Msg, wParam, lParam) ;
...
}
And in my C# code :
void EventSink(....)
{
//Code goes here -
//I don't know how to capture and process the message sent !
}
component. Basically, when a condition is true (in the C code), I want
to send a WM_ message (using Win32 API from the C code) to a C#
"listener" component which will then handle the event and any data sent.
So basically (in my C code):
void foo()
{
....
SendMessage(hWnd, Msg, wParam, lParam) ;
...
}
And in my C# code :
void EventSink(....)
{
//Code goes here -
//I don't know how to capture and process the message sent !
}