Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 "Change signature" option missing?

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
peterboulton Posted - Jun 01 2010 : 11:53:06 AM
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);
...
}
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jun 01 2010 : 4:04:40 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000