Click here to Skip to main content
15,905,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using stdafx.h in multiple directories Pin
Blake Miller2-Mar-05 7:09
Blake Miller2-Mar-05 7:09 
I am not sure, except to check your global includes setting and then to check the preprocessor setting for the debug and release of each project.

Also, it is possible that one of the paths might have snuck into an environment variable, but I thought those are only used for command line builds.

I usually do this, and have avoided many problems as a result:
1. I put ONLY the Platform SDK include paths into the global include paths (Tools Menu, Options Menu, Dirctores Tab, Include Files)
2. I never put anything implying a relative path for the stdafx.h. It is always plainly
#include "stdafx.h"
3. I modify the preprocessor setting for each project to include the local directory first as in "." and then follow it with the other folders required.
4. I never place a stdafx.h or stdafx.cpp in a folder that is going to contain 'shared' header or source files, as this will lead to the confusion about which stdafx.* to actually include.

I think someone wrote a 'header dependency walker' type tool and posted it on CodeProject. Maybe it will help you to determine which files are including which stdafx.h
GeneralRe: Using stdafx.h in multiple directories Pin
raghavr22-Mar-05 16:50
raghavr22-Mar-05 16:50 
GeneralRe: Using stdafx.h in multiple directories Pin
Blake Miller3-Mar-05 6:07
Blake Miller3-Mar-05 6:07 
Generalbluetooth programming Pin
Member 16324381-Mar-05 0:25
Member 16324381-Mar-05 0:25 
Generalwmi Pin
ozgul28-Feb-05 22:52
ozgul28-Feb-05 22:52 
GeneralRe: wmi Pin
Steve Thresher1-Mar-05 1:52
Steve Thresher1-Mar-05 1:52 
GeneralRe: wmi Pin
ozgul1-Mar-05 2:49
ozgul1-Mar-05 2:49 
GeneralRe: wmi Pin
Aamir Butt2-Mar-05 0:01
Aamir Butt2-Mar-05 0:01 
GeneralGetting a bit frustrated with Readfile/Writefile Pin
User 137680028-Feb-05 22:46
User 137680028-Feb-05 22:46 
GeneralRe: Getting a bit frustrated with Readfile/Writefile Pin
Michael Dunn1-Mar-05 1:42
sitebuilderMichael Dunn1-Mar-05 1:42 
GeneralRe: Getting a bit frustrated with Readfile/Writefile Pin
User 13768001-Mar-05 8:32
User 13768001-Mar-05 8:32 
GeneralChanging colours of a combo box (reposted) Pin
Alton Williams28-Feb-05 22:31
Alton Williams28-Feb-05 22:31 
QuestionHow to get the full Path from GetDisplayName Pin
Lonely Byte28-Feb-05 22:08
Lonely Byte28-Feb-05 22:08 
AnswerRe: How to get the full Path from GetDisplayName Pin
Ravi Bhavnani1-Mar-05 4:32
professionalRavi Bhavnani1-Mar-05 4:32 
GeneralRe: How to get the full Path from GetDisplayName Pin
Lonely Byte1-Mar-05 19:40
Lonely Byte1-Mar-05 19:40 
QuestionHow to manipulate bitmap in a View? Pin
kokehqyu28-Feb-05 20:38
kokehqyu28-Feb-05 20:38 
AnswerRe: How to manipulate bitmap in a View? Pin
Selvam R28-Feb-05 22:29
professionalSelvam R28-Feb-05 22:29 
GeneralRe: How to manipulate bitmap in a View? Pin
kokehqyu1-Mar-05 13:50
kokehqyu1-Mar-05 13:50 
GeneralInitially visible dialog box Pin
Kapgan28-Feb-05 20:16
Kapgan28-Feb-05 20:16 
GeneralRe: Initially visible dialog box Pin
zhang80060528-Feb-05 20:47
zhang80060528-Feb-05 20:47 
GeneralRe: Initially visible dialog box Pin
Kapgan1-Mar-05 0:24
Kapgan1-Mar-05 0:24 
GeneralRe: Initially visible dialog box Pin
Ed K1-Mar-05 10:58
Ed K1-Mar-05 10:58 
GeneralUDP transfer Pin
Raghav SR28-Feb-05 19:21
Raghav SR28-Feb-05 19:21 
GeneralRe: UDP transfer Pin
Alexander M.,1-Mar-05 5:14
Alexander M.,1-Mar-05 5:14 
GeneralMedia Gateway's in VoIP Pin
Raghav SR28-Feb-05 19:18
Raghav SR28-Feb-05 19:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.