Thanks for the reply. I believe this assumes it's just a regular function.
However, the function in the external DLL is a member function. Is there
anything special I have to do for that to work because I'm not just calling
a particular function but instead a function on an instance of some class.
Lance Johnson
Shakir Hussain said:
you have to declare delegate
public delegate void TestCallback();
and pass it as a parameter to the function in DllImport.
[DllImport("Sample.dll")]
public static extern void SomeFunction(TestCallback callback);
--
Shak
(Houston)
I'm using an external DLL that expects the address of a function for a
callback. How can I go about getting the address of a function I have?
Thanks for any help in this.
Lance Johnson