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
 Create from usage not working - VS 2005, C++
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

carleeto
Starting Member

1 Posts

Posted - Dec 22 2010 :  7:07:24 PM  Show Profile  Reply with Quote
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();
}

feline
Whole Tomato Software

United Kingdom
18946 Posts

Posted - Dec 23 2010 :  11:37:02 AM  Show Profile  Reply with Quote
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?

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