View previous topic :: View next topic |
Author | Message |
Ernesto Buenrostro Guest
| Posted: Fri Aug 15, 2003 6:36 pm Post subject: Loading ActiveX at Run Time | |
|
Hi! Every Body
Anyone know how to load an ActiveX at run time, I know that using the next function is posible but this retunr an interface, but witch object must be used to control it
The functions are this
CreateOleObject(const ClassName: String) IDistpatch CreateComObject(const ClassID: TGUID): IUnknow
anyone, have an example about this?
Thanks in advance
Ernesto
| |
Back to top | |
|
Deborah Pate (TeamB) Guest
| Posted: Sat Aug 16, 2003 3:16 pm Post subject: Re: Loading ActiveX at Run Time | |
|
<know that using the next function is posible but this retunr an interface, but witch object must be used to control it
The functions are this
CreateOleObject(const ClassName: String) IDistpatch
To use an automation object you can do this:
var Obj: OleVariant; begin Obj := CreateOleObject('Some.Classname'); Obj.DoSomething;
But what 'Some.Classname' and 'DoSomething' can be depends on what your automation object is. We can't really tell you any more without more information, I don't think.
-- Deborah Pate (TeamB) http://delphi-jedi.org
TeamB don't see posts sent via Google or ISPs Use the real Borland server: newsgroups.borland.com http://www.borland.com/newsgroups/genl_faqs.html | |