visualcplusplus gray-out

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2008
Posts: 4
Reputation: inumbris is an unknown quantity at this point 
Solved Threads: 0
inumbris inumbris is offline Offline
Newbie Poster

visualcplusplus gray-out

 
0
  #1
Nov 10th, 2008
I'm working with existing code, where I've found that I have to modify some #include preprocessor directives. For example, to change
  1. #include "myhdr.h"
to
  1. #include "..\hfiles\myhdr.h"
I include the original line in a comment just above the changed line:
  1. /*
  2. #include "myhdr.h" original */
  3. #include "..\hfiles\myhdr.h"
When I do this, some subsequent preprocessor lines appear grayed-out. It doesn't always occur, and it's not consistent. I've tried to find what this means by searching the MS help, which triggered an error in their search engine. Can some kind soul please provide a clue as to what it means, and what might be going on?
Thanks --bg.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,625
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 715
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: visualcplusplus gray-out

 
0
  #2
Nov 10th, 2008
It's just a quirk of the text highlighting. I've found that when I'm mucking about with preprocessor directives, the highlighter can't always keep up with me and even though the code is correct, the highlighting is wrong.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 2,001
Reputation: ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of ArkM has much to be proud of 
Solved Threads: 343
ArkM's Avatar
ArkM ArkM is offline Offline
Postaholic

Re: visualcplusplus gray-out

 
0
  #3
Nov 10th, 2008
Visual C++ editor shows text blocks deselected by conditional compilation directives as grayed (it's a stable state until you don't tread on #if-#else structure).
Check #if-#endif balance and conditions in the new header version...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC