Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Decl. in namespaces and refactoring

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
xMRi Posted - Jun 01 2010 : 08:19:30 AM
Hi!
I have problems with classes in a namespace.
I have a include file. This is machine generated (COM), so I use the foloing code to put it into a namespace

namespace MyNamespace
{
// SomePtr is declared inside here
#include "SomeInclude.h"
}


If is use the defines of this namespace I get problems.
SomePtr is defined but VA-X doesn't recognize it.


STDMETHODIMP CSomething::Foo(BSTR pNumber, MyNamespace::SomePtr** pRet)
{
...
}


Also using refactoring when the cursor is above pRet and I invoke the refactoring context menu the cursor jumps to another symbol in the line and doesn't offer me "Rename"
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jun 01 2010 : 11:02:15 AM
The above reg entry should fix intellisense, but I think there will still be issues with refactoring of the included symbols.
support Posted - Jun 01 2010 : 10:58:27 AM
Hi Martin,

There is a flag you can set that will tell VA to process the #include's within the namespace.

Use regedit to create a new string value named "AllowHashIncludeMembers" at "HKCU\\Software\\Whole Tomato\\Visual Assist X" and set the value to "Yes".

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