如何安装COM组件(20分)

  • 主题发起人 主题发起人 13606189222
  • 开始时间 开始时间
1

13606189222

Unregistered / Unconfirmed
GUEST, unregistred user!
如何安装COM组件?我安装时出现“访问一个或更多对象时,出现了错误-ErrorInfo集合有详细信息”
这是为什么?
 
regsvr32 com1.dll -install
 
我是初学,请讲仔细一点,分不够可以加
 
不要在Delphi的Run里Install,那会出错,我也不知道什么原因,期待答案中。
用下面的方法不会出错的:(用win2k 的组件服务工具来做,原文在
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1321452)
Creating a COM+ Event
To Create and install a COM+ Event first create a new ActiveX Library.
Next create a COM+ Event object.
Add to the COM+ Event Object interface the methods along with parameters that will be passed to the subscriber.
Save the project and compile it.
NOTE: do
not implement the methods for the generated object.
Installing a COM+ Event
Create a new COM+ Application in Component Services. You get to Component Services by going to Start, Settings, Control Panel, Administrative Tools, Component Services.
To create the application, in the tree view on the left go to Computers, My Computer, COM+ Applications.

Right click on COM+ Applications choose New, Application. Click Next, and Create an empty application.

Give the application a name. I suggest using all the defaults.

Now that you have the COM+ application created add the event. Expand the application and select Components. Right click on Components and choose New, Component.
Click Next and Choose Install new event class(es). Browse for the DLL that contains your COM+ Event Object and click Next and Finish.
The COM+ Event Object will now be visible in the Component Services.
OK,搞定了

 
后退
顶部