G
Guest
Hello,
I am writing a class in C# that uses [DllImport("dllname.dll")] to call
functions from a C++ dll. Evenything seems to work fine call the functions
except one of the functions takes a *File as a parameter.
Many of the functions also used char* and int* and I used string and IntPtr
respectively. Does anyone know a way to handle the file pointers?
This is the C++ declaration:
CPP DEBUG_API int interpret_command(char *inString, FILE *inputFile);
And I want to use:
[DllImport("debug.dll")]
static extern int interpret_command(string command, ??What goes here??);
Thanks in advance for any help.
Wes
I am writing a class in C# that uses [DllImport("dllname.dll")] to call
functions from a C++ dll. Evenything seems to work fine call the functions
except one of the functions takes a *File as a parameter.
Many of the functions also used char* and int* and I used string and IntPtr
respectively. Does anyone know a way to handle the file pointers?
This is the C++ declaration:
CPP DEBUG_API int interpret_command(char *inString, FILE *inputFile);
And I want to use:
[DllImport("debug.dll")]
static extern int interpret_command(string command, ??What goes here??);
Thanks in advance for any help.
Wes