程序在使用多字节字符集时,编译连接都正常。
但变为unicode时,编译正确,连接失败。error LNK2019: 无法解析的外部符号 _wWinMain@16 ,该符号在函数 _wWinMainCRTStartup 中被引用怎么回事?

解决方案 »

  1.   

    subsystem : Windows(/SUBSYSTEM:WINDOWS)
      

  2.   

    The  error means you don't have a wWinMain function. As you may know, this is the Unicode entry point for a windows program, so that means that there must be a function in the program with the prototype of,
    int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow);
      

  3.   

    是个基于MFC的对话框程序,没法改WinMain
      

  4.   

    》》subsystem : Windows(/SUBSYSTEM:WINDOWS)就是这样的设置啊