Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Problem detecting namespaces through includes

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
Chuckles_UK Posted - Jan 23 2009 : 09:28:01 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
cwdrat Posted - Feb 10 2009 : 12:34:22 PM
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.
accord Posted - Jan 25 2009 : 3:37:33 PM
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

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