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

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Oct 18, 2008
265
1
#1
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
*/