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
As I said before, a delegate type. For the void* you could use IntPtr
or void* (unsafe code).
Mattias
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.