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
 Add Include: control the path
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mjx
New Member

France
5 Posts

Posted - Nov 20 2012 :  08:55:36 AM  Show Profile  Reply with Quote
Hello,

we are working with a set of libraries. We defined it in the Stable include files the root folder, like "E:/ProviderLibraries/root".

Each header is in a folder like "root/FrameworkName/PublicInterfaces/HeaderName.h"

When doing "Add Include", we have:
#include "FrameworkName/PublicInterfaces/HeaderName.h"

Would it be possible to configure VAX to only get:
#include "HeaderName.h"

thanks

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 20 2012 :  10:26:51 AM  Show Profile  Reply with Quote
If you add "E:/ProviderLibraries/root/FrameworkName/PublicInterfaces" to the Additional Include Directories to your project, then Add Include should use only the name of the file in the directive that it generates.

Make sure to save the project (or reload the solution) so that VA 'sees' the change.
Go to Top of Page

mjx
New Member

France
5 Posts

Posted - Nov 20 2012 :  10:30:49 AM  Show Profile  Reply with Quote
Sean,

I thought of this but I have like 200 "frameworks" to add, and they are adding frameworks sometimes. So I was more looking for something automatic.

Thanks
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Nov 20 2012 :  11:27:21 AM  Show Profile  Reply with Quote
if you remove "E:/ProviderLibraries/root" then VA might give up and simply use the base name - but it depends on what other include directories you have and may introduce a slew of unrelated parsing problems.

I've opened a feature request to optionally set the add include behavior to skip path calculations and use only the name: case=70713
Go to Top of Page

mjx
New Member

France
5 Posts

Posted - Nov 22 2012 :  11:54:12 AM  Show Profile  Reply with Quote
Sean,

thanks for the feature request.

If I remove "E:/ProviderLibraries/root" then VA will not propose useful menu when coding unfortunately...
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Dec 17 2012 :  11:45:22 PM  Show Profile  Reply with Quote
case=70713 is implemented in build 1925 by adding new values to the following registry setting:

HKCU \\ Software \\ Whole Tomato \\ Visual Assist X \\ VANet8 \\ AddIncludeTokenStyle

Replace "VANet8" with "VANet11" for Visual Studio 2012
Replace "VANet8" with "VANet10" for Visual Studio 2010
Replace "VANet8" with "VANet9" for Visual Studio 2008
Replace "VANet8" with "VANet" for Visual Studio 2003
Replace "VANet8" with "VA6" for Visual C++ 6

Supported values:
0 = default, current behavior
1 = force use of ""
2 = force use of <>
3 = "name.h" or <name.h> dependent on include dirs, without path
4 = "name.h" without path
5 = <name.h> without path
Go to Top of Page

mjx
New Member

France
5 Posts

Posted - Jan 11 2013 :  02:52:22 AM  Show Profile  Reply with Quote
Thanks a lot !
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000