473,386 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

StdAfx?

Do you have any link about StdAfx?

Apparently anything which written before
#include "StdAfx.h"

is ignored!

Why the default empty project created by the wizard put it in to the .cpp
file and not in the .h file?
Jul 4 '06 #1
2 1755
"Lloyd Dupont" <net.galador@ldwrote in message
news:uZ**************@TK2MSFTNGP02.phx.gbl...
Do you have any link about StdAfx?
stdafx.cpp is the source file which is often used to generate the
precompiled header file.
Apparently anything which written before
#include "StdAfx.h" is ignored!
Yes, this is an optimization which speeds up compile time.

Details are here:

http://msdn.microsoft.com/library/de...ader_files.asp

Regards,
Will

Jul 4 '06 #2
thanks!

--
Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>
"William DePalo [MVP VC++]" <wi***********@mvps.orgwrote in message
news:uD**************@TK2MSFTNGP03.phx.gbl...
"Lloyd Dupont" <net.galador@ldwrote in message
news:uZ**************@TK2MSFTNGP02.phx.gbl...
>Do you have any link about StdAfx?

stdafx.cpp is the source file which is often used to generate the
precompiled header file.
>Apparently anything which written before
#include "StdAfx.h" is ignored!

Yes, this is an optimization which speeds up compile time.

Details are here:

http://msdn.microsoft.com/library/de...ader_files.asp

Regards,
Will



Jul 4 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Darren | last post by:
I just want do some console C++ programs. Do I still need this wield header"stdafx.h"? Thanks
2
by: Tommy Vercetti | last post by:
All C++ files in VC++ must start with #include "stdafx.h" Did anyone ever figure out why? Other C++ compilers have precompiler mechanisms that don't need source code modifications to function....
3
by: Egbert Nierop \(MVP for IIS\) | last post by:
Thanks in advance for answering this question.
3
by: Peter Oliphant | last post by:
I know that 'stdafx.h' has to do with pre-compiled headers. However, it seem weird that it is a required 'include' in any CPP file, especially since the file itself has no code in it! I know...
7
by: silversurfer | last post by:
Hello world, I am using linux and os x and tried to compile some c++ sources (dealing with image processin). Although many people wrote that the code worked at theirs, I got the error that the...
16
by: Chris Shearer Cooper | last post by:
In our Visual Studio 2005 application, we have several of our application's H files that are #included into stdafx.h. What is odd, is that when we change those application H files, VS2005...
2
by: Bob Altman | last post by:
Ok, I've wondered about this for a long time: Where does the name "StdAfx" come from? TIA - Bob
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.