FARPROC equivlent in c#

  • Thread starter Thread starter Guest
  • Start date Start date
Michael,
What's the equivlent data type for the FARPROC int c++?

Probably some delegate type with the right signature, but it depends
on how you are using the type.



Mattias
 
I think I should clear the question a little bit
I have a DLL written in c that I need to use in my c# program, I understand I need to use Dllimport to do so
the function in DLL is asking for a structure as parameter and some datatype of those structure are like FARPROC or void FAR *.
lik
typedef structur

FARPROC aname
void FAR

I am wondering How should I convert those datatype in my c# structure to call the dll function

Thanks for the hel

Michael
 
I am wondering How should I convert those datatype in my c# structure to call the dll function?

As I said before, a delegate type. For the void* you could use IntPtr
or void* (unsafe code).



Mattias
 
Back
Top