在[project settings]对话框中的[C/C++]标签中的"Preporcessor definitions:"添加",UNICODE,_UNICODE"編譯出現msvcrtd.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/PASE.exe : fatal error LNK1120: 1 unresolved externals
這個怎麼解決???   謝謝 !!!

解决方案 »

  1.   

    是不是工程建错了。试试:project ->setting ->c/c++  _CONSOLE改称_WINDOWS
    project ->setting ->link 下面的project options将/subsystem:console去掉
      

  2.   

    If you are using Unicode and MFC, you will get an unresolved external on _WinMain@16 if you don’t create an entrypoint to wWinMainCRTStartup. Use the /ENTRY option or type this value in the Project Settings dialog box. (To find this option in the development environment, click Settings on the Project menu, then click the Link tab, and click Output in the Category box.)
      

  3.   

    ok thanks to all  !!!