Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
StdAfx.h

StdAfx.h

Nov 15 2024

When developing C/C++ projects in Visual Studio, you may use precompiled headers to speed up compilation.

One of these header files includes all the other ones which are frequently used by the project but rarely modified. This file is usually named StdAfx.h.

The mechanism of precompiled headers is quite unobvious and has a number of subtleties to it. For instance, the StdAfx.h file must be the first one to be included into the *.cpp file.

Andrey Karpov has described in detail how to use precompiled headers and related nuances in the article "stdafx.h for Novices".

Although there is the word "novices" in the title, this article is really very interesting and useful. Even experienced developers have found something new and left positive feedback on it. So we urgently recommend you to read it - then StdAfx.h will turn from the file you constantly fight against into the file that really helps.

References:

Popular related articles


Comments (0)

Next comments next comments
close comment form
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you do not see the email in your inbox, please check if it is filtered to one of the following folders:

  • Promotion
  • Updates
  • Spam