Hi,
I have written an unmanaged Win32 DLL that generates events. The event it generates is a registered event of my choosing, which I have declared (via Win32 APIs, in C) in the following manner:
const UINT wmMessage = RegisterWindowMessage("B8AB0DA6-D2C5-446b-AEB6-0894D7C8992E"
;
Now, when this message gets posted to one of my C# windows, I need to handle it. I suppose I ought to write a sort of delegate for it, and somehow subscribe to this message.
I am rather a beginner at events in C#, and don't know what to do next. Any ideas?
-Peter
I have written an unmanaged Win32 DLL that generates events. The event it generates is a registered event of my choosing, which I have declared (via Win32 APIs, in C) in the following manner:
const UINT wmMessage = RegisterWindowMessage("B8AB0DA6-D2C5-446b-AEB6-0894D7C8992E"
Now, when this message gets posted to one of my C# windows, I need to handle it. I suppose I ought to write a sort of delegate for it, and somehow subscribe to this message.
I am rather a beginner at events in C#, and don't know what to do next. Any ideas?
-Peter