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
 1557 Change signature affects header only
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

d_p_robinson
Junior Member

United Kingdom
21 Posts

Posted - Jun 20 2007 :  07:22:23 AM  Show Profile  Reply with Quote
I have found the change signature feature frequently changes only the header file and not the implementation. Both files are writeable.

This occurs whether I start the operation from the header or the implementation.

VS6, XPSP2

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 20 2007 :  08:13:25 AM  Show Profile  Reply with Quote
If you use alt-o is VA able to take you to the matching file? Does this work in both directions?

Does alt-g work in both directions?

My first thought is that VA does not know about the cpp file. If the cpp file is not part of the project, so it is not listed in OFIW when it is closed then VA will not know about it, so it will not know to update it.

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

d_p_robinson
Junior Member

United Kingdom
21 Posts

Posted - Jun 20 2007 :  10:34:37 AM  Show Profile  Reply with Quote
ALT-O works both directions. ALT-G only picks up the definition in the header file. I've checked that both header and implementation appear in OFIW. I've done the usual thing and closed/reopened VS.

I've tracked it down - this was due to a faulty 'using namespace' declaration in the implementation file. The code generation tool had put in 'using <namespace>::<class name>' instead of 'using namespace <namespace>'. Ho hum, time to pester someone else.

Thanks for your help.
Go to Top of Page

d_p_robinson
Junior Member

United Kingdom
21 Posts

Posted - Jun 20 2007 :  11:29:18 AM  Show Profile  Reply with Quote
Oops - this is not closed after all. I checked that ALT-G works both directions but didn't check that the change signature is now fixed. Sadly the same fault applies - only the header is modified.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 20 2007 :  3:40:25 PM  Show Profile  Reply with Quote
Confirmed. Find References, Rename, alt-g all work perfectly for me with a "using namespace foo" line, but Change Signature only updates the header file. Oops.

case=7204

zen is the art of being at one with the two'ness
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