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:
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.