donet activeX控件 [英] donet activeX control
本文介绍了donet activeX控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
遵循示例 http://www.west-wind.com/presentations/foxpronetwebservices/foxpronetwebservices .asp [ ^ ]并得到一个错误"OLE错误代码0x80029c4a:加载类型库/DLL时出错". !我该如何解决这个问题?
我在FoxPro中运行的代码
oForm = CREATEOBJECT(" )
oForm.ADDOBJECT(" ," OLEControl", ActiveXLib.SupportFiles.TestCtrl")
解决方案
好吧,我终于弄清楚了这个问题!
我只需要为DLL生成.TLB文件
像所有旧版平台一样,FoxPro 9.0强制使用该文件作为COM服务器描述
^ ]是研究错误消息的方法.
>
Been following the example http://www.west-wind.com/presentations/foxpronetwebservices/foxpronetwebservices.asp[^] and get an error "OLE error code 0x80029c4a: Error loading type library/DLL." ! how do i trouble shoot this ?
Code i run in FoxPro
oForm = CREATEOBJECT("Form")
oForm.ADDOBJECT("myControl", "OLEControl", "ActiveXLib.SupportFiles.TestCtrl")
解决方案
Okay i finally figured out the problem !
I just needed to generate a .TLB file for the DLL
FoxPro 9.0 like all legacy platforms enforces to use that file for COM server description
This[^] is how you research error messages.
这篇关于donet activeX控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文