stdafx.h

What is it about?

Page 1 of 1

4 Replies - 666 Views - Last Post: 13 July 2009 - 05:30 AM Rate Topic: -----

#1 ladyinblack  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 9
  • View blog
  • Posts: 419
  • Joined: 08-April 09

stdafx.h

Posted 13 July 2009 - 02:52 AM

Hi,

Ok, so I know C++, and never in my entire programming life have I ever had the need to work with stdafx.h. What is it all about? Why the need? What does it do?

Also, why is it not existing in Visual C++ 6 or in devcpp 4.9.9.2. These are the versions of C++ I have. I also got VS2008 Express, would it be existing there? I haven't installed the C++ yet.
Is This A Good Question/Topic? 0
  • +

Replies To: stdafx.h

#2 venkateshps  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 45
  • Joined: 24-March 09

Re: stdafx.h

Posted 13 July 2009 - 03:56 AM

http://en.wikipedia....compiled_header
Was This Post Helpful? 0
  • +
  • -

#3 stayscrisp  Icon User is offline

  • フカユ
  • member icon

Reputation: 999
  • View blog
  • Posts: 4,177
  • Joined: 14-February 08

Re: stdafx.h

Posted 13 July 2009 - 05:02 AM

the afx in stdafx stands for Application Framework eXtensions.

I think stdafx is used with visual studio only so that is why your dev-cpp compiler didn't use it.

It is used for system include and project specific include files, just chuck all the inludes you will need across the project into this file :) thats how I understand it anyway.
Was This Post Helpful? 0
  • +
  • -

#4 codefreak.  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 79
  • Joined: 11-July 09

Re: stdafx.h

Posted 13 July 2009 - 05:19 AM

A pre-compiled header is used to reduce compilation time.
Was This Post Helpful? 0
  • +
  • -

#5 Elcric  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 101
  • View blog
  • Posts: 453
  • Joined: 02-May 09

Re: stdafx.h

Posted 13 July 2009 - 05:30 AM

Hello! :D

Application Framework eXtensions are normally MFC. Most people on a tight budget do not use MFC.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1