After Elysia's remarks giving me at least some idea of the reasoning behind these precompiled headers, I just started exploring these a little and have some questions.
First, VS also creates a file called targetver.h, which contains simply this:
I'm running this on an XP computer, and VS didn't put #include "targetver.h" into the file containing main. How does this file work? Do I need to put #include "targetver.h" in main in order to activate the macros that this file is somehow calling up?
// The following macros define the minimum required platform. The minimum required platform
// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run
// your application. The macros work by enabling all features available on platform versions up to and
// including the version specified.
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista.
#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows.
Second, rather than the int main() that I have been using, VS supplies:
int _tmain(int argc, _TCHAR* argv)
Just to see how (that) it works, I ran a "Hello, World" from there, and it worked fine. I'm just wondering what the parameters are doing here. It looks like it's giving you the opportunity to pass an int and an array of pointers to C-strings into main if you need to ... (?)