Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2004

Tip: Looking for answers? Try searching our database.

#define for all projects in the solution

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mirek - 29 Mar 2004 12:24 GMT
Hi,
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?
TIA

Regards,
mirek
Jochen Kalmbach - 29 Mar 2004 12:27 GMT
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.