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
 Alt-G problem with C and h files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AdyR
Ketchup Master

United Kingdom
75 Posts

Posted - Nov 29 2006 :  07:55:24 AM  Show Profile  Reply with Quote
I am using VS2005 + VA 1541 as the editor for a makefile project written in C. One problem I get is the Alt-G always goes to the header definition of variables instead of the C file.
E.g in the C file I have:
char* SeqNames [NUM_LIBRARY_TESTS + 1]=
{
	"8001:Custom",
	"8002:Cycle Test",
	"8003:Hold Test",
	"8004:Adhesive Test"
};
and in the header file I have:
extern char* SeqNames [NUM_LIBRARY_TESTS + 1];

In a function in another C file I have something like:
void foo()
{
	char* ptr = SeqNames[0];
}
When I put the cursor on SeqNames and hit Alt-G it goes straight to the h file instead of giving me a list of the C and H files. Pressing F12 for Visual Studios go to function takes me to the C file as required but I am so used to using Alt+G that this always catches me out.


Ady

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Nov 29 2006 :  6:51:25 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=3862

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

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Nov 29 2006 :  7:20:06 PM  Show Profile  Reply with Quote
As a possible workaround Find References is picking up all of the references for me. If you do not have to many references then this may be a good approach to finding the implementation.

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

AdyR
Ketchup Master

United Kingdom
75 Posts

Posted - Nov 30 2006 :  1:16:07 PM  Show Profile  Reply with Quote
Thanks feline. Pressing F12 is a simple workaround but the problem is I am so used to Alt-G, because it works better in most other cases, that I often forget and then end up in the header so I have to back up.

Ady
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