I am trying to reuse in C# one function written in Visual C++ 6.0 that is in a DLL. Function has the following head:
type_enum name_function(
unsigned long *var1,
unsigned long var2,
wchar_t *var3);
I am trying to use the following thing, but it does not work.
[DllImport("library.dll", EntryPoint="name_function"]
static extern type_enum name_function(
ref ulong var1,
ulong var2,
ref char var3);
Could somebody help me?
type_enum name_function(
unsigned long *var1,
unsigned long var2,
wchar_t *var3);
I am trying to use the following thing, but it does not work.
[DllImport("library.dll", EntryPoint="name_function"]
static extern type_enum name_function(
ref ulong var1,
ulong var2,
ref char var3);
Could somebody help me?