如何设置参数?
能否给出例子.thanks.

解决方案 »

  1.   

    int MultiByteToWideChar(
      UINT CodePage,         // code page
      DWORD dwFlags,         // character-type options
      LPCSTR lpMultiByteStr, // string to map
      int cbMultiByte,       // number of bytes in string
      LPWSTR lpWideCharStr,  // wide-character buffer
      int cchWideChar        // size of buffer
    );Sample:CString str = "string" ;
    LPWSTR lpszW = new WCHAR[255];LPTSTR lpStr = str.GetBuffer( str.GetLength() );
    int nLen = MultiByteToWideChar(CP_ACP, 0,lpStr, -1, NULL, NULL);
    MultiByteToWideChar(CP_ACP, 0,  lpStr, -1, lpszW, nLen);
    delete []lpszW ;