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. |