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.
Idael Cardoso - 27 Apr 2004 11:32 GMT
Look at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cp
conusingcallbackfunctions.asp
Or simple look for "Implementing Callback Functions " at your MSDN
documentation.
Idael.
> 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.