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
 Decl. in namespaces and refactoring
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - Jun 01 2010 :  08:19:30 AM  Show Profile  Reply with Quote
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"

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

Edited by - xMRi on Jun 01 2010 08:33:06 AM

support
Whole Tomato Software

5566 Posts

Posted - Jun 01 2010 :  10:58:27 AM  Show Profile  Reply with Quote
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".
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jun 01 2010 :  11:02:15 AM  Show Profile  Reply with Quote
The above reg entry should fix intellisense, but I think there will still be issues with refactoring of the included symbols.
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