title: VC++ #import directive for GCC/G++
body: <p>I'm trying to test out a library that provides a VC++ example; however, I use gcc/g++ for all of my projects.</p>
  
  <p>Well, the way the VC++ example accesses the library is it uses the <b>#import</b> directive, passing the location of the library DLL, then it does a <b>using namespace <i>LIBRARYNAME</i></b>, and then it's able to create some undefined type (I'd assume it's defined in the DLL) and create a new instance of it with __uuidof. From then on, to call one of the library functions the example just does a <b>createdObj->foo()</b> and that's that.</p>
  
  <p>Well... g++'s #import is different from VC++'s import (see <a href="http://msdn.microsoft.com/en-us/library/8etzzkb6(VS.71).aspx" rel="nofollow noreferrer">here</a>), so this example won't work for me.</p>
  
  <p>Is there any way this can be converted to compile under g++, or am I SOL until the library developer provides me with a static library I can try out?</p>