www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - IDispatch/activex objects in 2011

reply Jason King <jhking airmail.net> writes:
I need to interface with an application that has an IDispatch 
(activex/ole/automation) interface.  I can find some threads from 2006 
about how painful that was.  I'm suspecting that in the intervening 5 
years progress has been made, but I'm having trouble finding it.  The 
manual says D interfaces are descended from IUnknown, which would help 
me to CREATE an IDispatch object, but how do I use one that already exists?
Aug 08 2011
parent simendsjo <simendsjo gmail.com> writes:
On 08.08.2011 15:46, Jason King wrote:
 I need to interface with an application that has an IDispatch
 (activex/ole/automation) interface. I can find some threads from 2006
 about how painful that was. I'm suspecting that in the intervening 5
 years progress has been made, but I'm having trouble finding it. The
 manual says D interfaces are descended from IUnknown, which would help
 me to CREATE an IDispatch object, but how do I use one that already exists?

I've used Juno[1] in the past for COM programming. The project seems dead, and probably don't compile with newer DMD versions, but you might be able to figure out what it does. [1] http://dsource.org/projects/juno
Aug 08 2011