A
Arnau Font
Hi,
I'm trying to invoke a function in a DLL, using DllImport. One of the
parameters is a ANSI string, but the CharSet enumeration has only the Auto
and Unicode members. How can I send a string in ANSI to the DLL?
[DllImport("Protocol.dll", CharSet = CharSet.Auto)]
static extern int Configure(string password, uint pwdSize); //The password
should be passed as ANSI
Thanks!
I'm trying to invoke a function in a DLL, using DllImport. One of the
parameters is a ANSI string, but the CharSet enumeration has only the Auto
and Unicode members. How can I send a string in ANSI to the DLL?
[DllImport("Protocol.dll", CharSet = CharSet.Auto)]
static extern int Configure(string password, uint pwdSize); //The password
should be passed as ANSI
Thanks!