文章目录 前言一、错误:Error:未定义标识符"_TCHAR"二、无法打开源文件“stdafx.h” 前言 仅以记录错误,方便查看。原文:https://blog.csdn.net/hier3/category_6098210.html 一、错误:Error:未定义标识符"_TCHAR" 原因:没有将必要的库或者头文件添加进来。 方法: 添加一条 #include <tchar.h> 即可成功编译 二、无法打开源文件“stdafx.h” 直接删除include “stdafx.h” 即可,因为已经有预编译了。