P
Peter Bladh
Hi
I have a problem recieving strings containing non-ascii characters. The
following code sets up the p/invoke:
DllImport("Nccdll.dll", SetLastError = false)]
static extern unsafe int NccWrapperReceive(StringBuilder msg, int size);
The actual function (C) in the dll looks like this:
int NccWrapperReceive(LPWSTR msg, int size)
This usually works, but when the msg parameter contains a character above
0x7E, that character and any following characters "disappear". How do I get
the entire string?
Thanx!
/peter
I have a problem recieving strings containing non-ascii characters. The
following code sets up the p/invoke:
DllImport("Nccdll.dll", SetLastError = false)]
static extern unsafe int NccWrapperReceive(StringBuilder msg, int size);
The actual function (C) in the dll looks like this:
int NccWrapperReceive(LPWSTR msg, int size)
This usually works, but when the msg parameter contains a character above
0x7E, that character and any following characters "disappear". How do I get
the entire string?
Thanx!
/peter