Author |
Topic |
|
partnerinflight
Senior Member
37 Posts |
Posted - Nov 24 2003 : 12:36:31 PM
|
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
|
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. |
|
|
partnerinflight
Senior Member
37 Posts |
Posted - Nov 24 2003 : 1:42:33 PM
|
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. ) |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Nov 24 2003 : 4:28:17 PM
|
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. |
|
|
partnerinflight
Senior Member
37 Posts |
Posted - Nov 24 2003 : 4:35:15 PM
|
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? |
|
|
|
Topic |
|
|
|