send message
Hey.
Inside a .dll I'm trying to send several status messages back to the calling program. Can anyone suggest ways of doing this ?
Thanks for any help.
[175 byte] By [
laasunde] at [2007-11-19 10:50:00]

# 2 Re: send message
You can pass the handle to a control through to the dll by using the Control.Handle property (use IntPtr for the HWND which is passed to the native dll).
You can then override the WindowProc method on the control to trap the messages.
Darwen.
# 3 Re: send message
Why don't you use delegates or events ?
I recently moved from c++ to c# so I'm not familiar with delegates, and I have no experience with events, but will look into both of them. Thanks.