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
 Same names in system and local headers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Plus
New Member

2 Posts

Posted - Dec 14 2012 :  03:45:01 AM  Show Profile  Reply with Quote
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!

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Dec 17 2012 :  4:10:57 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

Plus
New Member

2 Posts

Posted - Dec 23 2012 :  9:58:54 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Dec 27 2012 :  1:02:03 PM  Show Profile  Reply with Quote
Apologies that you had to do this, hopefully this rename was not to much work, and that everything is now working well.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000