-------------------Configuration: SerialPort - Win32 (WCE ARMV4I) Debug-------------------- 
Compiling... 
PSerialPort.cpp 
c:\program files\windows ce tools\wce420\d200plus\mfc\include\afxdisp.h(72) : fatal error C1189: #error :  "Can't build MFC OLE projects using static MFC libraries." 
SerialPort.cpp 如何解决??

解决方案 »

  1.   

    ALT+F7 ,General属性页 改成Use MFC in a Shared DLL 试试?
      

  2.   


    ALT+F7 ,General属性页 改成Use MFC in a Shared DLL Linking...
    corelibc.lib(pegwmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function WinMainCRTStartup
    ARMV4IDbg/SerialPort.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.SerialPort.exe - 2 error(s), 0 warning(s)
      

  3.   

    ALT+F7, Link->Output->Entry-point symbol: 修改成wWinMainCRTStartup
      

  4.   

    evc貌似只认识宽字符(UNICOE)所以加个w ,平时不加w的是多字节(ansi),以后还要注意多加_T("")~
      

  5.   

    EVC只能用UNICODE来编译程序,所以程序编译时要加上Unicode,_UnicodewWinMainCRTStartup是Unicode运行库的入口函数.