If you have a COM component that accepts a function pointer for callbacks
then you can indeed use that from your managed code. I would suggest using a
pinned object just in case the garbage collector does its stuff before you
get your callback.
--
Of all words of tongue and pen, the saddest are: "It might have been"
Bill.Richards @ greyskin .co .uk
http://greyskin.co.uk
"GE Security - Bob" wrote:
Hi,
Is this possible - to call a C# method from a COM Dll?
I wanted to send the COM dll the address of a C# function so I could call it
back. (This was originally written in C then C++).
Or, do I need to add events to the COM dll and C# can capture those?
Thanks!
Bob