Author |
Topic |
|
besa
New Member
4 Posts |
Posted - Apr 05 2005 : 05:00:27 AM
|
Hello,
i have got a problem to jump to my strings in the RC file. When i place the cursor on the constant (IDS_MYSTRING) and press the "GO" button VAX 1299 jumps to the definition in the resource.h file. In former versions of VAX i could choose if i want to jump to the resource.h file or to the myapp.rc file.
Any idea why i can't choose anymore.
Regards
Sascha |
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Apr 05 2005 : 3:33:31 PM
|
first the "silly" question. i don't use string resources myself, so why would the constant be defined in more than one .h file?
do you know which version of VA you were using to get the option of which file to open? |
zen is the art of being at one with the two'ness |
|
|
Stephen
Tomato Guru
United Kingdom
781 Posts |
Posted - Apr 05 2005 : 4:50:51 PM
|
Not two .h files, feline. One .h file and one .rc file. The way resources work, in resource.h you have something like#define STR_MY_STRING 177 and then in ProjectName.rc you haveSTRINGTABLE
BEGIN
STR_MY_STRING "This is the text of my string"
END And then in the source you can doCString s;
s.LoadString(STR_MY_STRING); |
Stephen Turner ClickTracks http://www.clicktracks.com/ Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
|
Edited by - Stephen on Apr 05 2005 4:53:54 PM |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Apr 09 2005 : 3:41:03 PM
|
*ah* that sort of makes sense.
besa do you remember which version of VA gave you the choice of destination? this might help me find out why this changed, if it was a deliberate change. |
zen is the art of being at one with the two'ness |
|
|
besa
New Member
4 Posts |
Posted - Apr 13 2005 : 02:03:48 AM
|
hello feline,
on our server i find the version VA_X_Setup1230.exe from April 04. As far as i remember it works with that version.
Regards
Sascha |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Apr 13 2005 : 3:32:45 PM
|
i have just installed 1230 on a test machine but i am not getting any menu on alt_g. i will see if Support have any ideas on this. |
zen is the art of being at one with the two'ness |
|
|
besa
New Member
4 Posts |
Posted - Feb 23 2006 : 08:58:07 AM
|
Hello again,
i found out that this worked unter NT4 and maybe unter Win 2000. I have added a screenshot of how it should be.
Regards again
Sascha
|
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Feb 23 2006 : 3:55:50 PM
|
which version of VA are you using here?
plus which IDE is this? it looks like VC6, but i am not certain. |
zen is the art of being at one with the two'ness |
|
|
besa
New Member
4 Posts |
Posted - Mar 01 2006 : 08:50:54 AM
|
VC6 with Visual Assist 6.0 (1096) |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Mar 02 2006 : 3:32:29 PM
|
thank you for that, i will ask support about this change in behaviour. |
zen is the art of being at one with the two'ness |
|
|
PatLuja
Tomato Guru
Belgium
416 Posts |
Posted - Mar 09 2006 : 03:08:54 AM
|
Hello all,
I've tested this (for the first time) today. Within a .cpp file, I placed my cursor on a string defined in a resource file and pressed ALT-G. It offered me three places, one in the resource.h file, and two in the resource file (.rc) itself (one for the Dutch version and one for the English version). When I clicked on one of the later two, the resource view was activated, and the indicated line number was searched in the current (.cpp) file, not within the .rc file. (This probably has to do with the resource file opening in the Resource view by default.)
If VA X could go to the indicated location within the .rc file (in the text editor), would be great. I'm interested in the reaction of support.
I must add that I like the ALT-G functionality. (And feline, you were right -in that other thread- it is quite fast.)
With kind regards, Patrick Luja |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Mar 09 2006 : 5:18:20 PM
|
these days i have a working string table test application, woohoo!
i am seeing the same menu as patluja on alt-g. for me selecting the rc file is not successfully taking me to the rc file, and is instead causing the caret to jump within the current cpp file, so that is a bug. i am not quite sure what selecting the rc file should do though.
case=1025 |
zen is the art of being at one with the two'ness |
|
|
PatLuja
Tomato Guru
Belgium
416 Posts |
Posted - Mar 10 2006 : 03:48:54 AM
|
Dear feline (and all others),
When you double click on the .rc file in the Solution Explorer, by default behaviour the Resource View pops up. So it gives you the graphical representation of the .rc file. It would be nice to have the .rc file opened within the text-editor. (Normaly you do this by right clicking on the .rc file and then say "Open with...", "Source Code (Text) Editor" - in Visual Studio .Net 2003 at least).
With kind regards, Patrick Luja |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Mar 10 2006 : 3:18:36 PM
|
are you saying you want VA's alt-g function to open the rc file in the editor (which you have already requested) or are you saying that you want the rc file to open in the editor when you double click on it in the Resource View?
my gut instinct is that double clicking on the Resource View is outside of VA's area. also, is it not possible to configure this by setting the default editor for rc files? i have the feeling you can set the default editor somewhere in the IDE's options for various things. |
zen is the art of being at one with the two'ness |
|
|
PatLuja
Tomato Guru
Belgium
416 Posts |
Posted - Mar 13 2006 : 03:25:58 AM
|
Dear feline,
Sorry for the confusion.
The first remark was to state a possible explanation why ALG-G causes the Resource View to pop up and it jumps in the current file: if you compare it to clicking on a file in the Solution Explorer, it first opens the file, then jumps to the right place. With the .rc file: the file is opened (causing the Resource View) to pop up (but no other file to be opened inside the editor) and jumps in the current editor file to the right place.
The second line states that it would be nice that the .rc file (its source code) would be opened inside the editor and then jump to the right place.
So I (again) requested the first option you've mentioned. Not implying any of the second option.
Thanks.
With kind regards, Patrick Luja |
|
|
|
Topic |
|