1.“SDKDDKVer.h”: No such file or directory
解决:项目——属性——配置属性——常规——windowsSDK版本默认的时8.1,但是windows10得更改,点击右边下拉按钮,改为 (我的是)10.0.17134.0。更改后点击应用——确定
2.“error MSB8020: 无法找到 Visual Studio 2010 的生成工具(平台工具集 =“v100”)
解决:右键单击该 解决方案 -->重定向项目->选择最新版本
3.找不到vcruntime.h:No such file or directory
解决:找到vcruntime.h的目录,比如D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include
项目——属性----VC++目录----包含目录,将刚才的目录添加进去
4.C4996 ‘strcpy’: This function or variable may be unsafe. Consider using strcpy_s instead
strcpy(src,“hello world”); 替换成 strcpy_s(src,strlen(“hello world”),“hello world”);