Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Same names in system and local headers

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
Plus Posted - Dec 14 2012 : 03:45:01 AM
Hello!

It seems Visual Assist erroneously prioritize symbols from system headers (those listed as "Stable include files")
over project local symbols when displaying suggestion lists.

Here's how it looks like.

1) In my project I have this type defined in Rectangle.h file:

struct Rect
{
    float x;
    float y;
    float h;
    float w;
}


2) In any cpp file, declare variable of this type:

Rect r;


3) Click the "Rect" word, press Alg+G. Visual Assist (correctly) jumps to the Rect structure definition in Rectangle.h.

4) BUT, when I try to use "r" variable, it will display suggestions based on Rect structure defined in (system wide)
GdiPlusTypes.h (it resides in "C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\Include" in my case).

Thus, when I type "r.x" it automatically gets corrected to "r.X" ("r.h" to "r.Height" and so on).

Is there any trick to resolve the issue? Or should I just rename my Rect structure?
Thanks!
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Dec 27 2012 : 1:02:03 PM
Apologies that you had to do this, hopefully this rename was not to much work, and that everything is now working well.
Plus Posted - Dec 23 2012 : 9:58:54 PM
Thank you for your answer.

The first thing I've tried was to disable various Intellisense options.
Unfortunately, that didn't help.
I ended up renaming my Rect type.
feline Posted - Dec 17 2012 : 4:10:57 PM
Duplicate symbol names are always a bit confusing. You might want to try turning On:

VA Options -> Advanced -> Listboxes -> Get content from default Intellisense

and see if this helps or not. Sometimes this makes things better, so it is worth trying.

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