C
c_xyTopa
hi all!
i have a c++ function, which becomes wchar_t* as in-parameter:
void func1(wchar_t *name){}
the coresponding method in c# is:
[DllImport("test.dll")]
static extern void func1(string name);
that works fine.
but if the wchar_t *name is out-parameter, same method declaration in c#
doesn't work. what do i do wrong?
i have a c++ function, which becomes wchar_t* as in-parameter:
void func1(wchar_t *name){}
the coresponding method in c# is:
[DllImport("test.dll")]
static extern void func1(string name);
that works fine.
but if the wchar_t *name is out-parameter, same method declaration in c#
doesn't work. what do i do wrong?