打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Loading ActiveX at Run Time

Loading ActiveX at Run Time

 
   
   BorlandTalk.com Forum Index -> Delphi ActiveX Controls Usage
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
Quote:


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
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
Qt的内省机制剖析
CollectGarbage函数--JS清理垃圾,内存释放
npm的qs包的使用:stringify()将json对象序列化成表单数据
PHP5的对象模型[15]--其它特性(最新) - Haohappy的专栏--PHP5研究...
python3 入门 (四) 类与继承
7.4 利用反射简化抽象工厂
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服