title: COM exe, C++, and MinGW
body: <p>Have abit of an odd question; I'm using a tool supplied by a large company that, for reasons I find somewhat baffling, uses a COM interface defined inside the exe itself. In the example code they provide, it looks alittle like this.</p>
  
  <p><code>#import "C:\\Path_To_Exe\\the.exe" rename_namespace ("exe_namespace");</code></p>
  
  <p>From what I understand, this is the way Microsoft Visual C++ compiler understands the COM and works with it, and I have had the example code working before (currently, it doesn't compile due to fiddling with my build environment).</p>
  
  <p>My question is, is there a way to do the same with MinGW? The project I'm working on is mainly using that; we can use MSVC if required, but I'd ideally like to avoid using multiple compilers if possible. I'm currently using cmake to build with, but I'm willing to use a script to build the items that need the COM interface if needed.</p>
  
  <p>Thanks for your time.</p>