Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? Bytes or Chars (that is 16 bit chars)

Oct
356
2
Hello --

I would just like to confirm -- In both of this API call, the "nLength" argument
is the max number of bytes or chars?

thanks


void WINAPI ASCIIToUnicode( char * pszASCII, LPWSTR pszUnicode, int nLength );
/*
Convert an ASCII string to Unicode
nLength = maximum length of pszUnicode
*/

void WINAPI UnicodeToASCII( LPWSTR pszUnicode, char * pszASCII, int nLength );
/*
Convert a Unicode string to ASCII
nLength = maximum length of pszASCII
*/
 
Back
Top