Hmm, this was much harder than I had anticipated ...

I have gotten the code in this thread to compile: http://www.qtcentre.org/threads/231. It says that the code is "complete". But I have no idea of how to use it. How do I communicate with the API? Do I still need the type library? How?

For reference the python sample code can be written in 3 lines:
Qt Code:
  1. import win32com.client
  2.  
  3. disto = win32com.client.Dispatch("disto2.application")
  4. disto.SingleMeasure()
To copy to clipboard, switch view to plain text mode 
One would think the Qt/C++ wouludn't be that hard in comparison. There is also some MFC/C++ sample code using COleDispatchDriver class.

I would like to do all in Qt/C++, but if someone has a solution using either python or MFC in some way I'm interested in hearing that as well.

Thanks