Whole Tomato Software Forums
Main Site
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
All Forums
Visual Assist
Feature Requests
Specify base directory for "Add Include"
You must be registered to post a reply.
Click
here
to register.
Screensize:
640 x 480
800 x 600
1024 x 768
1280 x 1024
UserName:
Password:
Format:
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
1
2
3
4
5
6
Color
Black
Blue
Brown
Green
Red
Violet
Yellow
Message:
Forum code
is on.
Html is off.
[quote][i]Originally posted by feline[/i] [br]Using VS2017 and VA 2291 I have create a new, default C++ console project, and set up the following test files: C:\src\add_include_console\add_include_console.SLN C:\src\add_include_console\add_include_console\add_include_console.VCXPROJ C:\src\add_include_console\add_include_console\Project1\SubDirectory\Example.cpp C:\src\add_include_console\add_include_console\Project1\Header1.h C:\src\add_include_console\add_include_console\Project2\Example2.h C:\src\add_include_console\add_include_console\Project2\Header2.h C:\src\add_include_console\add_include_console\MoreProjects\Project3\Header3.h taken from your examples above. All of these code files have been added to the project. Since I have used the directory with the .VCXPROJ file as my base, this is already a known directory to use for reference for include paths. I have a test class in each of the header files, and I make instances of each class in the "example.cpp" file. With the VA settings: VA Options->Code Generation->Add Include style = <> VA Options->Code Generation->Add Include path = Prefer path relative to project Add Include for each of these test classes gives me: #include <Project2/Example2.h> #include <../Header1.h> #include <Project2/Header2.h> #include <MoreProjects/Project3/Header3.h> which seems to be the result you are looking for. I can send you the test solution if you want to look at it directly? This is a little complex to explain here, but I think I have set up a reasonable test for your situation, and what I am getting seems correct. The registry key setting AddIncludePreferShortestRelativePath is not having any effect on my results. [/quote]
Check to include your profile signature.
Check to subscribe to this topic.
T O P I C R E V I E W