1. 程式人生 > >IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds

IntelliSense: #error 指令: Please use the /MD switch for _AFXDLL builds

由#error引起

解決方法:

修改如下設定:工程(Project)->屬性(Properties)->配置屬性(Configuration Properties)

->c/c++->程式碼生成(Code Generation)->執行時庫(Use run-time library)

->多執行緒除錯DLL(/MDd)

選擇DLL(/MD);