Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Image Operations Pin
Christian Graus28-Jun-01 19:56
protectorChristian Graus28-Jun-01 19:56 
GeneralRe: Image Operations Pin
Tran Hoang Chuong28-Jun-01 20:07
Tran Hoang Chuong28-Jun-01 20:07 
GeneralRe: Image Operations Pin
Christian Graus28-Jun-01 20:08
protectorChristian Graus28-Jun-01 20:08 
GeneralRich Text Pin
Steven Armstrong28-Jun-01 16:52
Steven Armstrong28-Jun-01 16:52 
GeneralSerializing Bitmaps Pin
mr200328-Jun-01 16:16
mr200328-Jun-01 16:16 
GeneralHard coded path names Pin
Alex Griffing28-Jun-01 15:56
Alex Griffing28-Jun-01 15:56 
GeneralRe: Hard coded path names Pin
28-Jun-01 18:08
suss28-Jun-01 18:08 
GeneralRe: Hard coded path names Pin
#realJSOP29-Jun-01 3:52
mve#realJSOP29-Jun-01 3:52 
First, it's a good idea for everyone to have the same directory structure (if for no other reason that to serve as a common frame of reference). For instance, I have the following directory structure for ne of my projects:

\Johns Projects\ --- CommonFiles
                 --- DeMONS2\     --- D2CommonFiles
                                  --- D2Config
                                  --- D2Launcher
                                  --- D2Scrub


With the directory structure described above, any project in the johns projects root can get to any header file in CommonFiles or D2CommonFiles, even if "Johns Projects" has another name or is copied (in its entirety) to another drive altogether

In your project settings dialog...

1) Click Project | Settings... in the Visual Studio menu.

2) On the left side of the dialog, you'll see a combo box labeled "Settings for:". Select "All Configurations".

3) On the right side of the dialog, select the "C++" tab, and in the combo box labeled "Category:", click the "Preprocessor" item (last one in the list).

4) In the edit field lebaleled "Additional Include Directories:", and your relative path. Using the directory structure example above, for all of the projects in the DeMONS2 folder (D2Launcher, D2Config, and D2Scrub), I used "..\..\CommonFiles,..\D2CommonFiles".

At this point, all you have to do is #include the filename itself without worrying about the path at all.

In order to share a project, everyone will find it much simpler to just have identical directory structures.
QuestionHow do I implement serialization from my Cview class Pin
mr200328-Jun-01 14:45
mr200328-Jun-01 14:45 
QuestionHow do I activate the view my mouse goes over in an MDI app ? Pin
Christian Graus28-Jun-01 14:26
protectorChristian Graus28-Jun-01 14:26 
AnswerRe: How do I activate the view my mouse goes over in an MDI app ? Pin
#realJSOP29-Jun-01 4:09
mve#realJSOP29-Jun-01 4:09 
GeneralRe: How do I activate the view my mouse goes over in an MDI app ? Pin
Christian Graus29-Jun-01 21:04
protectorChristian Graus29-Jun-01 21:04 
GeneralRe: How do I activate the view my mouse goes over in an MDI app ? Pin
Neville Franks29-Jun-01 22:06
Neville Franks29-Jun-01 22:06 
GeneralRe: How do I activate the view my mouse goes over in an MDI app ? Pin
Christian Graus30-Jun-01 0:32
protectorChristian Graus30-Jun-01 0:32 
QuestionHow do I stop my view from being erased after serialising the document??? Pin
Ananya Sen Gupta28-Jun-01 11:50
Ananya Sen Gupta28-Jun-01 11:50 
AnswerRe: How do I stop my view from being erased after serialising the document??? Pin
Christian Graus28-Jun-01 14:12
protectorChristian Graus28-Jun-01 14:12 
GeneralMX Records and DNS Pin
28-Jun-01 10:55
suss28-Jun-01 10:55 
GeneralDeviceIoControl() question Pin
28-Jun-01 10:34
suss28-Jun-01 10:34 
GeneralSystem Menu Pin
Libor Matejka28-Jun-01 9:56
Libor Matejka28-Jun-01 9:56 
GeneralRe: System Menu Pin
Christian Graus28-Jun-01 14:13
protectorChristian Graus28-Jun-01 14:13 
GeneralRe: System Menu Pin
Libor Matejka28-Jun-01 18:14
Libor Matejka28-Jun-01 18:14 
GeneralRe: System Menu Pin
Michael Martin28-Jun-01 19:32
professionalMichael Martin28-Jun-01 19:32 
GeneralRe: System Menu Pin
Libor Matejka29-Jun-01 2:52
Libor Matejka29-Jun-01 2:52 
QuestionNotify should i return 0 ? Pin
28-Jun-01 9:53
suss28-Jun-01 9:53 
GeneralFunction passed in argument Pin
28-Jun-01 9:30
suss28-Jun-01 9:30 

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.