Click here to Skip to main content
15,912,837 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Disabling Controls Pin
prasad_som30-Mar-07 1:48
prasad_som30-Mar-07 1:48 
GeneralRe: Disabling Controls Pin
gunner_uk200030-Mar-07 1:52
gunner_uk200030-Mar-07 1:52 
Questionatl8.0 backward compatibility issue Pin
Shiva Prasad30-Mar-07 1:09
Shiva Prasad30-Mar-07 1:09 
AnswerRe: atl8.0 backward compatibility issue Pin
prasad_som30-Mar-07 3:29
prasad_som30-Mar-07 3:29 
Question"Additional include directories" problem Pin
Aredel30-Mar-07 0:28
Aredel30-Mar-07 0:28 
AnswerRe: "Additional include directories" problem Pin
Taka Muraoka30-Mar-07 1:02
Taka Muraoka30-Mar-07 1:02 
GeneralRe: "Additional include directories" problem Pin
Aredel30-Mar-07 5:23
Aredel30-Mar-07 5:23 
GeneralRe: "Additional include directories" problem Pin
bolivar12330-Mar-07 9:00
bolivar12330-Mar-07 9:00 
Consider this example:

Suppose your projects are setup in the following paths:

c:\MyProjects\common\include
c:\MyProjects\DLLs\DllProject1\include
c:\MyProjects\DLLs\DllProject2\include
c:\MyProjects\Project1\include

Lets suppose Project1 needs the includes from DLLProject1, DLLProject2, and common\include.

You could enter the include paths for Project1 using relative paths, relative to the Project1 project folder. Using the above example, your include path could be:

.\include;..\common\include;..\Dlls\DllProject1\include;..\Dlls\DllProject2\include


Alternatively, you might be able to use evironment variables (macros) in the include path. What you could do is define environment variables that define common directory paths into a single macro.

Using this technique, you could define these environment variables.

SET PROJECTBASE="C:\MyProjects\"
SET COMMONINCLUDE="%PROJECTBASE%common\include"
SET DLLBASE="%PROJECTBASE%DLLs"

Your include path would be:
.\include;$(COMMONINCLUDE);$(DLLBASE)\DLLProject1\include;$(DLLBASE)\DLLProject2\include;

The basic idea is to merge as many common folders into a single macro.

The IDE will automatically expand the $(<environment variable>) macros as needed. Using this technique makes it real easy to move your projects from one folder to the other without having to tweak each of the projects. You just have to adjust the environment variables.

I hope this information helps you or at least gives you ideas on how you can solve your include path problems.

This subject could be a good idea for a beginners article here on CP.

QuestionSHFileoperation Pin
Vjys30-Mar-07 0:26
Vjys30-Mar-07 0:26 
AnswerRe: SHFileoperation [modified] Pin
prasad_som30-Mar-07 0:32
prasad_som30-Mar-07 0:32 
GeneralRe: SHFileoperation Pin
Vjys30-Mar-07 1:13
Vjys30-Mar-07 1:13 
AnswerRe: SHFileoperation Pin
prasad_som30-Mar-07 1:42
prasad_som30-Mar-07 1:42 
GeneralRe: SHFileoperation Pin
Vjys30-Mar-07 2:07
Vjys30-Mar-07 2:07 
AnswerRe: SHFileoperation Pin
prasad_som30-Mar-07 2:11
prasad_som30-Mar-07 2:11 
GeneralRe: SHFileoperation Pin
Vjys30-Mar-07 2:23
Vjys30-Mar-07 2:23 
GeneralRe: SHFileoperation Pin
Programm3r30-Mar-07 1:45
Programm3r30-Mar-07 1:45 
QuestionRe: SHFileoperation Pin
Programm3r30-Mar-07 1:16
Programm3r30-Mar-07 1:16 
AnswerRe: SHFileoperation Pin
Programm3r30-Mar-07 1:18
Programm3r30-Mar-07 1:18 
AnswerRe: SHFileoperation Pin
ThatsAlok1-Apr-07 20:57
ThatsAlok1-Apr-07 20:57 
QuestionPost message to main thread? [modified] Pin
LiYS29-Mar-07 23:19
LiYS29-Mar-07 23:19 
AnswerRe: Post message to main thread? Pin
Naveen29-Mar-07 23:27
Naveen29-Mar-07 23:27 
GeneralRe: Post message to main thread? Pin
LiYS29-Mar-07 23:41
LiYS29-Mar-07 23:41 
GeneralRe: Post message to main thread? Pin
Naveen29-Mar-07 23:45
Naveen29-Mar-07 23:45 
AnswerRe: Post message to main thread? Pin
Parthi_Appu29-Mar-07 23:40
Parthi_Appu29-Mar-07 23:40 
GeneralRe: Post message to main thread? Pin
LiYS29-Mar-07 23:42
LiYS29-Mar-07 23:42 

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.