《VC++就业培训宝典之MFC视频教程》学习笔记

开发环境:Win7 64位 + VS2013

第三章第二节视频

  1. 在Win32工程中学习MFC开发,编译问题:

     Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]

解决办法: 将MFC设置为静态链接

  •  项目 --- 属性 --- 配置属性 --- 将 MFC的使用 设置为 "在静态库中使用MFC"  
  •  项目 --- 属性 --- 配置属性 --- C/C++ --- 代码生成 --- 将 运行库 设置为 "多线程调试(/MTd)"