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" method created as private
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SvenC
Tomato Guru

Germany
339 Posts

Posted - Apr 21 2011 :  08:49:37 AM  Show Profile  Reply with Quote
I use 1845 in VS 2010 and have this code snippet:

pSomeClass->SomeNewMethod(1, 2, 3);

When I choose SomeNewMethod and select "Create from Usage" then the method declaration is added into the private section of the class definition of pSomeClass. So the code is not compilable as SomeNewMethod is not accessable.

I didn't test if the class definition has to be special to cause this behavior. Just as an info: pSomeClass in my case is an ATL simple COM object. So there are some macros in the class definition like ATL_NO_VTABLE, BEGIN_COM_MAP and so on

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Apr 21 2011 :  4:18:35 PM  Show Profile  Reply with Quote
This is currently a known limitation of Create From Usage. We are looking to improve this, so VA will recognise when to make the new item public or private:

case=29902

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

sean
Whole Tomato Software

USA
2817 Posts

Posted - Mar 16 2016 :  12:04:11 AM  Show Profile  Reply with Quote
case=29902 is fixed in build 2093
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