Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-06-2006, 12:06 AM
tdauld tdauld is online now
Registered User
 
Join Date: 07-05-2006
Posts: 4
Make VS.NET, preprocessor directives

I want to build a project with certain C++ preprocessor directives modified from the default. For example, as if #define DEMO was in effect. I can't find specific information about it in the devenv documentation. I'm using Visual Studio version 7.0.

I can think of a few other ways of doing it:

- Create and select a new configuration
- Include a blank header somewhere and write the directives to that from VBP
- Do a search for the commented out #define and replace it with the uncommented version

None of these solutions are ideal. Any suggestions on passing preprocessor directives to devenv or comment on an alternate solution?

Thanks,
Tim
Reply With Quote
  #2  
Old 07-06-2006, 08:07 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
One approach would be to tweak the .vcproj file(s) with the desired preprocessor directive(s). The attached sample is for VC 7.1 (but should be similar or identical for 7.0).
Attached Files
File Type: zip preprocessor.zip (610 Bytes, 1436 views)
Reply With Quote
  #3  
Old 07-07-2006, 12:45 AM
tdauld tdauld is online now
Registered User
 
Join Date: 07-05-2006
Posts: 4
I think I'll stick with replacing predefined commented directives in a header file, as it affords the ability to validate the selected option.

Thanks for a great product, by the way!

Cheers,
Tim
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 05:15 PM.


Copyright © 1999-2023 Kinook Software, Inc.