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
 inaccessible color setting?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

partnerinflight
Senior Member

37 Posts

Posted - Nov 24 2003 :  12:36:31 PM  Show Profile
Sorry this might be my mistake. I'm using build 1202 with VS.NET, working on a cpp file.

The syntax color for #defines (like STDAPI, HRESULT, etc) are appearing in light gray, and I can't find anywhere to change that color setting. I tried hitting the "Use Defaults" button, but the colors didn't change. Is there a setting missing, or am I doing something wrong?

support
Whole Tomato Software

5566 Posts

Posted - Nov 24 2003 :  1:36:29 PM  Show Profile
One of your VA X symbol databases might not be built correctly.

Try setting platform to Win32 in Assist|Options|Projects|C/C++ Directories. If you don't get a message about restarting, press Rebuild on Assist|Options|Performance|General. Restart your IDE.

Note, macros that are referenced but never #defined in source are gray, not purple as other macros. This is the case even if they appear in a #if or #ifdef. For example:

#ifdef _DEBUG


Whole Tomato Software, Inc.
Go to Top of Page

partnerinflight
Senior Member

37 Posts

Posted - Nov 24 2003 :  1:42:33 PM  Show Profile
Hmmm, is this a change to VA.NET behavior? Because VA.NET used to color those macros just fine, in blue as far as I recall.

The platform was already set to Win32. Rebuilt the symbols again, but still appearing in light-gray. I think it's because they're not defined in my source though, as you mentioned. WINAPI is a standard define. (Although isn't this defined in the standard headers? Doesn't VA parse standard headers? hmmm. )
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Nov 24 2003 :  4:28:17 PM  Show Profile
If you click on WINAPI, what appears in the Definition field at the top of your source window?

WINAPI should be a #define. HRESULT should be a typedef.

Do you have entries for "Stable include file" when Platform=Win32 in Assist|Options|Projects|C/C++ Directories?

Whole Tomato Software, Inc.
Go to Top of Page

partnerinflight
Senior Member

37 Posts

Posted - Nov 24 2003 :  4:35:15 PM  Show Profile
both HRESULT and WINAPI show nothing in the Definition field. (Add STDMETHODIMP to this list too).

Hmmm. Another weirdness. I went to VA Options/Directories, and saw about four gray-highlighted entries in the box, none of which I could select. (Clicking on them had no effect. Pressing the move up/move down buttons had no effect either)

Then I opened a couple .cpp files looking for that WINAPI symbol to see what the definitions window would show, found it, clicked around a bit, opened VA Options/Directories again, and this time nothing showed up in the directories list.

Trying to open random cpp files/.h files and see if I can get the entries back, but so far they're stubbornly staying away.

By the way, a related (minor) bug: when the list of directories is empty, all of the buttons (delete, move up, move down) are still enabled. Shouldn't they be disabled?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000