Click here to Skip to main content
15,898,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Finding Version of an exe Pin
S.DARWIN PAUL RAJ1-Mar-05 18:19
S.DARWIN PAUL RAJ1-Mar-05 18:19 
GeneralRead all text from a file into a CString… Pin
anderslundsgard1-Mar-05 3:18
anderslundsgard1-Mar-05 3:18 
GeneralRe: Read all text from a file into a CString… Pin
David Crow1-Mar-05 3:26
David Crow1-Mar-05 3:26 
GeneralRe: Read all text from a file into a CString… Pin
anderslundsgard1-Mar-05 3:41
anderslundsgard1-Mar-05 3:41 
GeneralRe: Read all text from a file into a CString… Pin
David Crow1-Mar-05 4:00
David Crow1-Mar-05 4:00 
GeneralRe: Read all text from a file into a CString… Pin
anderslundsgard1-Mar-05 4:05
anderslundsgard1-Mar-05 4:05 
GeneralRe: Read all text from a file into a CString… Pin
David Crow1-Mar-05 4:42
David Crow1-Mar-05 4:42 
GeneralRe: Read all text from a file into a CString… Pin
anderslundsgard1-Mar-05 7:20
anderslundsgard1-Mar-05 7:20 
GeneralRe: Read all text from a file into a CString… Pin
David Crow1-Mar-05 8:44
David Crow1-Mar-05 8:44 
GeneralRe: Read all text from a file into a CString… Pin
anderslundsgard1-Mar-05 20:23
anderslundsgard1-Mar-05 20:23 
GeneralRe: Read all text from a file into a CString… Pin
David Crow2-Mar-05 2:14
David Crow2-Mar-05 2:14 
GeneralRe: Read all text from a file into a CString… Pin
anderslundsgard2-Mar-05 2:51
anderslundsgard2-Mar-05 2:51 
GeneralHOOk Pin
Ajmoda1-Mar-05 2:30
Ajmoda1-Mar-05 2:30 
Generaldoubts about .net / managed C++ Pin
doneirik1-Mar-05 2:09
doneirik1-Mar-05 2:09 
GeneralHelp Dont know why Pin
Anonymous1-Mar-05 2:02
Anonymous1-Mar-05 2:02 
GeneralRe: Help Dont know why Pin
Chris Losinger1-Mar-05 2:42
professionalChris Losinger1-Mar-05 2:42 
GeneralRe: Help Dont know why Pin
Anonymous1-Mar-05 3:09
Anonymous1-Mar-05 3:09 
GeneralUnderstanding MBCS Pin
Chintoo7231-Mar-05 1:55
Chintoo7231-Mar-05 1:55 
GeneralRe: Understanding MBCS Pin
Michael Dunn1-Mar-05 7:46
sitebuilderMichael Dunn1-Mar-05 7:46 
GeneralExtract text from PDF in C++ Pin
User 17288841-Mar-05 1:43
User 17288841-Mar-05 1:43 
GeneralUsing stdafx.h in multiple directories Pin
raghavr21-Mar-05 0:54
raghavr21-Mar-05 0:54 
GeneralRe: Using stdafx.h in multiple directories Pin
Blake Miller1-Mar-05 6:19
Blake Miller1-Mar-05 6:19 
GeneralRe: Using stdafx.h in multiple directories Pin
raghavr21-Mar-05 16:38
raghavr21-Mar-05 16:38 
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 

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.