1
wangxn 2021 年 11 月 11 日 via Android
选那个预编译头的选项可以生成第一个文件
|
2
s609926202 OP |
3
ysc3839 2021 年 11 月 11 日 选择预编译头即可。stdafx.h 只是个预编译头的文件名,现在改成了 pch.h 而已,叫啥名不影响功能。
targetver.h 的内容一般是 ``` #pragma once // // Including SDKDDKVer.h defines the highest available Windows platform. // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. #include <SDKDDKVer.h> ``` 意思是如果你想让程序能在旧的 Windows 中跑,可以在这里定义版本号,然后头文件会把新的 API 给屏蔽掉。 对于初学者来说我个人不建议管这些,直接 include 即可,等后面开始写复杂项目了再来看这些内容。 |