T O P I C R E V I E W |
SvenC |
Posted - Apr 21 2011 : 08:49:37 AM 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 |
2 L A T E S T R E P L I E S (Newest First) |
sean |
Posted - Mar 16 2016 : 12:04:11 AM case=29902 is fixed in build 2093 |
feline |
Posted - Apr 21 2011 : 4:18:35 PM 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 |