Is it possible to declare different charset options for seperate params?
heres what i mean:
[dllimport(\"my.dll\", charset = charset.Ansi)] void myfunc(s
You should specify [MarshalAs] for each parameter.
Try the following:
[DllImport("my.dll")] void myfunc( [MarshalAs(UnmanagedType.LPStr)] string CharPtrInCPP, [MarshalAs(UnmanagedType.LPWStr)] StringBuilder WCharPtrInCPP, int len );