Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,565 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,888 people online right now. Registration is fast and FREE... Join Now!




Microsoft Visual C++ 2008 Express Edition

 
Reply to this topicStart new topic

Microsoft Visual C++ 2008 Express Edition, A default header file

christianlayman
11 Apr, 2008 - 05:12 PM
Post #1

New D.I.C Head
*

Joined: 9 Apr, 2008
Posts: 2

In Microsoft Visual C++ 2008 Express Edition, I have a stdfax.h,.cpp file coming up when a create a new project; well I gives a problem when I am about to compile the existing program and it won't compile. I don't need this file. Does anybody know to get rid of it?

I would appreciate the help. I am frustrated.


User is offlineProfile CardPM
+Quote Post

KYA
RE: Microsoft Visual C++ 2008 Express Edition
11 Apr, 2008 - 05:19 PM
Post #2

#include <nerd.h>
Group Icon

Joined: 14 Sep, 2007
Posts: 4,924



Thanked: 105 times
Dream Kudos: 1200
My Contributions
Try creating a blank project.
User is offlineProfile CardPM
+Quote Post

skaoth
RE: Microsoft Visual C++ 2008 Express Edition
11 Apr, 2008 - 05:25 PM
Post #3

D.I.C Regular
Group Icon

Joined: 7 Nov, 2007
Posts: 343



Thanked: 10 times
Dream Kudos: 100
My Contributions
What you have here is what's called pre-compiled headers.
When you create a project MS VS will usually tack this on as default
unless you specifically tell it not to.

To turn this off (I'm using VS 2k5 Pro) but should be the same
for VS 2k8 express

1)Open up the project
2) Select "Project" from the menu can select "Properties" (Alt- F7)
3) Click on the tree
"Configuration Properties" -> "C/C++" -> "Precompiled Headers"
4) There should be a drop down that allows you to turn this off
5) You should now be able to delete the stdafx.h/.cpp files

See the image attached for clarification.


Attached thumbnail(s)
Attached Image
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 11:50PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month