Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create from usage not working - VS 2005, C++

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
carleeto Posted - Dec 22 2010 : 7:07:24 PM
code:

void Foo::Bar()
{
//let's add a new function here
//and try create from usage.
NewFunctionName();
}

Right click on NewFunctionName() after typing it. Create from usage is not enabled.

Same for:
bool Foo::Bar()
{
return NewFunctionName();
}

1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Dec 23 2010 : 11:37:02 AM
Using VS2005, VA 1837 on a winXP machine I have added the following code to a header file:

class FelineTestCreateUsage
{
	void testFunc1();
	bool testFunc2();
};

and the following code to the matching cpp file:

void FelineTestCreateUsage::testFunc1()
{
	NewFunctionName();
}

bool FelineTestCreateUsage::testFunc2()
{
	return NewFunction2();
}

Create From Usage is offered for me on both new functions. Can you try this test code on your system please, and see what happens?

Which version of VA are you using?

Is VA refactoring being offered on the class and member function in your code?

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