C/C++ 常见问题及解决方案整理

 


问题一,_T 未定义

 

解决:

包含如下头文件

#include <tchar.h>

 

问题二,添加lib

 

解决:

方法1

menu Project --> Properties (bottom item of the popup menu) -->expand the Configuration Properties tab --> Linker --> Input. The first line on the right side is "Additional Dependencies". Add the name of the library there.
方法2
把下面的代码加入相应 *.cpp 文件顶端
#pragma comment(lib, "ole32.lib")

 

 

未完待续。。。

 

你可能感兴趣的:(properties,library,dependencies,menu,linker)