passing a delegate to a C function.

  • Thread starter Thread starter James
  • Start date Start date
J

James

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.
 
* (e-mail address removed) (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!
 
Back
Top