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]
# 1 Re: send message
Why don't you use delegates or events ?
hspc at 2007-11-9 1:49:36 >
# 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.
darwen at 2007-11-9 1:50:40 >
# 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.
laasunde at 2007-11-9 1:51:33 >
# 4 Re: send message
a delegate is like a function pointer
MadHatter at 2007-11-9 1:52:39 >