> My application consists of many projects and unfortunatelly now I'm
> forced to do conditional compilation. I can #define a variable and then
> #ifdef the parts of code but the problem is that I need to define it in
> all the projects in the solution. I wish I set this variable in one
> place. How to make it in ellegant way?
Set it in the project settings under "C++ | preprocessor defines"

Signature
Greetings
Jochen
Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
Do you need daily reports from your server ?
http://sourceforge.net/projects/srvreport/
mirek - 29 Mar 2004 12:54 GMT
> Set it in the project settings under "C++ | preprocessor defines"
I know but this way I would have to set it in the all of the projects in
the solution.
Regards,
mirek
Steve W - 29 Mar 2004 14:41 GMT
Put the #define in a common header file.
mirek - 31 Mar 2004 16:48 GMT
> Put the #define in a common header file.
Yes. I'll do it in this way as it seems that there is no better solution.
Regards,
mirek
EMonaco - 31 Mar 2004 02:58 GMT
Would be nice if you could set these types of things on the solution as a
whole.
Erin.

Signature
Visit us on the web at: http://www.databasementsoftware.com
> > Set it in the project settings under "C++ | preprocessor defines"
>
[quoted text clipped - 3 lines]
> Regards,
> mirek
mirek - 31 Mar 2004 16:53 GMT
> Would be nice if you could set these types of things on the solution as a
> whole.
In makefile world it'd trivial. :)
BTW I wish there was better way to do organize subprojects. Now I'm
using Enterprise Template but its quite strange to do it in this way.
Regards,
mirek