A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 4 years ago

What is the point of "stdafx.h"?

  • This Question is Closed
  1. jagatuba
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Isn't that an allergy medicine?

  2. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    It's included in every new Visual Studio C++ project

  3. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ahh it seems to be a "pre-compiled header"

  4. jagatuba
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Yes

  5. jagatuba
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Theoretically it should save time since the headers don't have to be re-parsed.

  6. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    right

  7. anonymous
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    It used to be a header file for "Application Framework Extensions", a set of functionality that was later extended into MFC. MFC was then deprecated and abandoned, but the header file lived on as a precompiled header. It's commonly used to just include everything your project needs and precompile it, but that's a double edged sword. On one hand, you can group a bunch of includes in a single header file, on the other, that's simply bad practice because it counteracts modularization and can actually significantly increase compile times when you modify header files. Technically you should avoid using the #include directive in header files - because it means every file that includes your header, will also include everything your header includes, and so on.

  8. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.