Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VAX 1646: Macros in Project Settings not Honored?

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
gstelmack Posted - Aug 11 2008 : 2:09:49 PM
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.
4   L A T E S T    R E P L I E S    (Newest First)
gstelmack Posted - Aug 11 2008 : 3:17:51 PM
Thanks. Deleting the NCB file fixed it.
accord Posted - Aug 11 2008 : 3:08:05 PM
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.
gstelmack Posted - Aug 11 2008 : 2:59:42 PM
Ahh, thanks. I shall investigate Visual Studio then.
accord Posted - Aug 11 2008 : 2:33:13 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000