Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VAX 1646: Macros in Project Settings not Honored?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gstelmack
Ketchup Master

USA
76 Posts

Posted - Aug 11 2008 :  2:09:49 PM  Show Profile  Reply with Quote
I have a symbol #defined in the project settings. But code inside a #ifdef block using that symbol is colored grey to indicate it would not be compiled.

#ifdef someSymbol

#include "file1.h"
#include "file2.h"

....


#endif


(sorry, had to use Teal, since Grey is not a forum color...)

Any ideas what can cause this? May be a relatively recent thing as I thought older versions were working fine, but can't confirm.

We're not using property sheets or anything else funky. I've double-checked property settings for the currently active config to verify that the define is there.

-- Greg Stelmack, Red Storm Entertainment

Edited by - gstelmack on Aug 11 2008 2:10:15 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 11 2008 :  2:33:13 PM  Show Profile  Reply with Quote
This coloring is done by Visual Studio. It was introduced in Visual Studio 2005. You may also upgraded Visual Studio at some point.
This gray-out works even without Visual Assist.
Go to Top of Page

gstelmack
Ketchup Master

USA
76 Posts

Posted - Aug 11 2008 :  2:59:42 PM  Show Profile  Reply with Quote
Ahh, thanks. I shall investigate Visual Studio then.

-- Greg Stelmack, Red Storm Entertainment
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 11 2008 :  3:08:05 PM  Show Profile  Reply with Quote
You can turn off this feature here:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Formatting -> Colorize inactive code blocks in a different color

if you don't like it.
Go to Top of Page

gstelmack
Ketchup Master

USA
76 Posts

Posted - Aug 11 2008 :  3:17:51 PM  Show Profile  Reply with Quote
Thanks. Deleting the NCB file fixed it.

-- Greg Stelmack, Red Storm Entertainment
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000