error: cannot convert 'const wchar_t [13]' to 'LPCSTR {aka const char*}' in assignment

前端 未结 3 1503
无人共我
无人共我 2020-11-29 09:15
// include the basic windows header file
#include 
#include 

// the WindowProc function prototype LRESULT CALLBACK WindowProc(HWN         


        
3条回答
  •  半阙折子戏
    2020-11-29 09:51

    I use this on my single source code file because I don't want to change my current project configuration

    #ifndef UNICODE
    #define UNICODE
    #define UNICODE_WAS_UNDEFINED
    #endif
    
    #include 
    
    #ifdef UNICODE_WAS_UNDEFINED
    #undef UNICODE
    #endif
    

提交回复
热议问题