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
 Problem detecting namespaces through includes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chuckles_UK
New Member

United Kingdom
2 Posts

Posted - Jan 23 2009 :  09:28:01 AM  Show Profile  Reply with Quote
I'm using a 3rd party library that has a bunch of typedefs that coincidentally match the name of some used in our internal tech libraries. Unfortunately, the actual definitions are slightly different. To get around this without either modifying either the 3rd party headers, or making some rather large changes to our internal tech, I've created a header file that looks something like this:

#ifndef myheader_h
#define myheader_h

namespace 3rdparty{
#include "3rdparty\\main_header.h"
}

#endif

And then anywhere I need to reference the 3rd party library I include "myheader.h" instead of "3rdparty\\main_header.h". Any reference to their types and functions are then done like this:

3rdparty::uint uValue = 3rdparty::DoSomething();

This all works fine, and avoids type confusion. Thankfully there aren't many places where I need to call their functions and use their types so it doesn't clutter the code much. The problem I'm having is that the Visual Assist auto-completion doesn't recognise the types and functions as being within the namespace, so I have to go back to manually typing everything (which is sooo laborious after you've been using VAX for almost as long as Visual Assist has existed). I'm using VAX version 1711 in Visual Studio 2005 and programming in C++ by the way.

Any suggestions?
Cheers,
Charles

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 25 2009 :  3:37:33 PM  Show Profile  Reply with Quote
I have put in a bug report for this:

case=23246

For a workaround you can try turning this option on:

VA Options -> Advanced -> Listboxes -> Get content from default Intellisense
Go to Top of Page

cwdrat
Junior Member

19 Posts

Posted - Feb 10 2009 :  12:34:22 PM  Show Profile  Reply with Quote
This sounds a lot like a problem I posted about:

case=20712

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=8281

You'll have to skip to the last couple posts in the thread before the problem was identified. It's not the *same* problem, but similar.

Edited by - cwdrat on Feb 10 2009 12:36:05 PM
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