Board index » delphi » Passing an OLE object through another OLE object

Passing an OLE object through another OLE object

I am fairly new at developing an automation object.  I have set up an
interface for an application which allows me to access the application as an
out-of-process COM automation server.  Within the original application, it
is possible for an instance of Excel to be initialized as an OLE object of
the application.  What I need to do is somehow pass the instance of Excel
through my interface to an external program, in this case written in VBA, so
that the client program running MY interface as an OLE object can obtain
control of the Excel instance generated by my automation server.  Can
someone give me some advice as to how this would be done?  If I haven't made
clear what I'm trying to do, please let me know.  Thanks.

Kollin Patten

 

Re:Passing an OLE object through another OLE object


As long as you can access the second program through COM, you can pass it a
pointer to Excel using the VARIANT data type, for instance.

--
have fun
Binh Ly
http://www.techvanguards.com

Quote
"Kollin Patten" <kol...@powerworld.com> wrote in message

news:3b40c0e5$1_1@dnews...
Quote
> I am fairly new at developing an automation object.  I have set up an
> interface for an application which allows me to access the application as
an
> out-of-process COM automation server.  Within the original application, it
> is possible for an instance of Excel to be initialized as an OLE object of
> the application.  What I need to do is somehow pass the instance of Excel
> through my interface to an external program, in this case written in VBA,
so
> that the client program running MY interface as an OLE object can obtain
> control of the Excel instance generated by my automation server.  Can
> someone give me some advice as to how this would be done?  If I haven't
made
> clear what I'm trying to do, please let me know.  Thanks.

> Kollin Patten

Other Threads