Author |
Topic |
|
mspa
Senior Member
Netherlands
44 Posts |
Posted - Oct 25 2004 : 03:15:23 AM
|
I have a problem with the following situation:
My project file structure looks something like this
.\\Workspace.dsp .\\Project1\\Source\\scrfile.cpp .\\Project1\\Include\\hdrfile.h .\\Project2\\Source\\scrfile.cpp .\\Project2\\Include\\hdrfile.h
Both projects contain a .cpp file and .h file with exactly the same name and are both included in one workspace.
The problem lies in the shortcut alt+O which switches between corresponding header and source files. However in my situation the switching is always done to the files of project1. So switching from project1 is ok, but switching from project2 always results in the corresponding file of project1.
Can something be done about this problem? |
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Oct 26 2004 : 08:19:17 AM
|
i am guessing this is with VC6 since you have listed a dsp file. are all of the cpp files part of the same workspace? or do you have more than one workspace open?
which version of VAX are you using? do you have any other plugin's installed? |
zen is the art of being at one with the two'ness |
|
|
mspa
Senior Member
Netherlands
44 Posts |
Posted - Oct 26 2004 : 10:02:10 AM
|
This is indeed with VC6.
Each project has it's own project file ( project1.dsp, project2.dsp ), both projects are added to a single workspace file. So only one workspace if open with both projects.
Besides VAX 1276 I have also installed the WinTabsExt (3.10) extension. |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Oct 27 2004 : 6:39:39 PM
|
added to my list of things to try and reproduce. |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Oct 30 2004 : 7:35:57 PM
|
Since cpp and header do not live in the same directory, VA X searches /I for a matching file in which the implemenation might exist. As you have discovered, VA X finds a matching file first in Project1, regardless of project in which header is found.
Unfortunately, this one is not an easy one to fix. |
|
|
kobrigo
New Member
2 Posts |
Posted - Nov 22 2004 : 05:25:22 AM
|
This is a major drawback.
The result is that on a dayly bases we are jumping to wrong files. This feature is one of the most powerfull features that the VA has.
please fix it or at least give us a work-around.
|
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Nov 22 2004 : 5:36:45 PM
|
do you have the option to rename some of the source files, to avoid the confusion? |
zen is the art of being at one with the two'ness |
|
|
mspa
Senior Member
Netherlands
44 Posts |
Posted - Nov 23 2004 : 02:34:09 AM
|
Well in fact it is possible off course, but it would take up a lot of time to adjust the filenames, adjust all include statements and our sources are stored in a source database which needs to be adjusted.
So it is possible, but I doubt it that I am the only one with this problem. So it would be great if you guys could fix this.
How come a file which is deeper in the directory structure is found first before a file which is almost in the 'same' directory? |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Dec 06 2004 : 5:17:03 PM
|
at a guess, this has something to do with how VAX scans the /I list it gets back from the IDE. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|