1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Plugins' started by fpefpe, Nov 10, 2012.

  1. fpefpe

    Joined:
    Oct 18, 2008
    Messages:
    263
    Likes Received:
    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
    */
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    10,090
    Likes Received:
    85

Share This Page