处理各种预定义信息. 如:程序运行的环境,如限制程序只能在XP下运行,限制程序在只能在Vin7下运行. 你可以理解成和Stdafx.h作用类似。要理解,主要看文件中的各种宏定义是什么意思就理解文件的作用了。MSDN中的例子Targetver.h This sample was created for Windows 7 and later operating systems. C++#pragma once #ifndef _WIN32_WINNT #define _WIN32_WINNT NTDDI_WIN7 #endif
具体可以看看里面的代码。
如:程序运行的环境,如限制程序只能在XP下运行,限制程序在只能在Vin7下运行.
你可以理解成和Stdafx.h作用类似。要理解,主要看文件中的各种宏定义是什么意思就理解文件的作用了。MSDN中的例子Targetver.h
This sample was created for Windows 7 and later operating systems.
C++#pragma once
#ifndef _WIN32_WINNT
#define _WIN32_WINNT NTDDI_WIN7
#endif