原因:缺少头文件 解决方案:添加一条 #include <tchar.h> 转载于:https://www.cnblogs.com/Amedeo/p/6130880.html