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
 "Change signature" option missing?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peterboulton
Junior Member

United Kingdom
13 Posts

Posted - Jun 01 2010 :  11:53:06 AM  Show Profile  Reply with Quote
I'm wondering why the "Change Signature" option should be missing from the refactoring menu in VS2010 when editing the following C++ function:

// Hide/unhide the selected rows or columns in the grid
void CGridCtrl::DoHideUnhide(BOOL bHide /*== TRUE*/)
{
// Get selected rows and columns
CUIntArray arrSelectedCols, arrSelectedRows;
GetSelectedCells(arrSelectedRows, arrSelectedCols);
...
}

feline
Whole Tomato Software

United Kingdom
19001 Posts

Posted - Jun 01 2010 :  4:04:40 PM  Show Profile  Reply with Quote
Using VS2010 I have added the following test code to a .h file:

class CGridCtrl
{
	void DoHideUnhide(BOOL bHide = TRUE);
};


and the following code to the matching cpp file:

// Hide/unhide the selected rows or columns in the grid
void CGridCtrl::DoHideUnhide(BOOL bHide /*== TRUE*/)
{
	// Get selected rows and columns
// 	CUIntArray arrSelectedCols, arrSelectedRows;
// 	GetSelectedCells(arrSelectedRows, arrSelectedCols);
// 	...
}


when I place the caret into the function name in the cpp file VA is happy to offer me Change Signature. Exactly how are you triggering the refactoring menu, and where have you placed the caret?

Are any other VA refactoring commands being offered?

Do you have overloads of this function in your code? If so then this may be the problem, since Change Signature is not offered on overload functions, to avoid problems with VA getting confused over which overload is which.

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