RT

解决方案 »

  1.   

    UNICODE与_UNICODE. 函数有两种,一种是C Run-time Library(如_stprintf),一
    种是Windows API(如MessageBox)。
      

  2.   

    #ifdef _UNICODE
    #ifndef UNICODE
    #define UNICODE         // UNICODE is used by Windows headers
    #endif
    #endif#ifdef UNICODE
    #ifndef _UNICODE
    #define _UNICODE        // _UNICODE is used by C-runtime/MFC headers
    #endif
    #endif
    上面是vc里面几个头文件的内容
    个人使用中感觉_UNICODE不是让所有的char都变成wchar
      

  3.   

    UNICODE用在WINDOWS API
    _UNICODE用在c run-time