I have a dll written in C. I call this C function from my C# code.
Within the C function(in dll) it should be able to call a function in
C#(Callback function). So when I call the C function I need to pass a
pointer to the C# function. I use delegates within my C# code for
other reasons, but could I use this method. Can anybody help. Thanks
in advance.

Re: passing a delegate to a C function. by hirf-spam-me-here

hirf-spam-me-here
Tue Apr 27 06:10:19 CDT 2004

* james_morris1232000@yahoo.com.au (James) scripsit:
> I have a dll written in C. I call this C function from my C# code.
> Within the C function(in dll) it should be able to call a function in
> C#(Callback function). So when I call the C function I need to pass a
> pointer to the C# function. I use delegates within my C# code for
> other reasons, but could I use this method. Can anybody help. Thanks
> in advance.

No multiposts please. Thank you!

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>