原因:没有将必要的库或者头文件添加进来。 方法: 添加一条 #include <tchar.h> 即可成功编译 原文地址:http://blog.youkuaiyun.com/nemo2011/article/details/6744442