473,386 Members | 1,804 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.

What is "stdafx.h" for in VS.Net?

I just want do some console C++ programs. Do I still need this wield
header"stdafx.h"? Thanks

Jul 23 '05 #1
3 14542
Darren wrote:
I just want do some console C++ programs. Do I still need this wield
header"stdafx.h"? Thanks


The C++ standard knows nothing about stdafx.h. This is a vendor
specific extension you'll need to talk to vendor based news groups about.

I usually turn off "pre-compiled headers" and remove the include for
stdafx.h as they have caused more trouble than they are worth. (IMHO).

Standard C++ knows nothing about "Console" applications, they are all
the same.

If it is a standard C++ compiler, you don't need to include anything.
e.g.
-----------------------------
int main()
{
}
-----------------------------

Should compile and run. (won't do much)
Jul 23 '05 #2
On 12/3/05 3:15 AM, Darren wrote:
I just want do some console C++ programs. Do I still need this wield
header"stdafx.h"? Thanks


It shouldn't make a difference whether you include it or not. It's
Microsoft's way of precompiling headers - that is, it's a way of
speeding up compilation. Just leave it there and ignore it.
Jul 23 '05 #3

"Darren" <xl*****@gmail.com> wrote in message
news:11********************@g14g2000cwa.googlegrou ps.com...
I just want do some console C++ programs. Do I still need this wield
header"stdafx.h"? Thanks


STDAFX.H , is, I beleive - becuase i never encountered it until, a MicroSoft
thing.
You get it automatically when you create a new project, just cut the info
out and drop in your own header file. You are not required to use this file,
"stdafx.h"
..
Jul 23 '05 #4

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

Similar topics

6
by: Ken Varn | last post by:
Sometimes when I try to close my managed C++ application, the following dialog displays in Win 2000 Pro: The title of the dialog is "Server Busy". The message is "This action cannot be completed...
5
by: Jarek | last post by:
Hi all! I'm optimizing my C++ multi-threaded application (linux). My application consumes huge amout of memory from unknown reason. There are no memory leaks, or other allocation bugs,...
1
by: blue | last post by:
Looking at code from the following: http://www.gamedev.net/reference/programming/features/enginuity2/page3.asp I'm confused though... CMMPointer(T *o) { obj=0; *this=0;
5
by: junky_fellow | last post by:
Each time i submit some pattern to "google", it shows search took 0.XX seconds for exploring millions of web pages. When i look for efficient ways of searching a string, they always say compare...
2
by: Lasse Edsvik | last post by:
Hello I was wondering if you guys could tell me if: cmd.ExecuteReader(CommandBehavior.CloseConnection); returns a dataset, datatable or what?
9
by: Dullme | last post by:
i can hardly know what is the code for this. I have researched palindromes, but unfortunately, I only have read about integers not for characters..I need some help..
5
by: cowgurl art | last post by:
Hey there. I will not pretend to know more than I do...I'm just getting my feet wet with Dreamweaver and MySql databases. What I'm trying to do is create a form that will allow members to submit an...
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
4
by: CBFalconer | last post by:
regis wrote: Why don't you read the documentation (or source) from whomever supplied you that (non-standard) function? -- : Chuck F (cbfalconer at maineline dot net) :...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.