首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

regsvr32 ActiveFormProj1.ocx 提示 runtime error 217 at 009aea39,该如何处理

2012-04-26 
regsvr32 ActiveFormProj1.ocx提示 runtime error 217 at 009aea39在注册ocx时候先提示应用程序发生异常

regsvr32 ActiveFormProj1.ocx 提示 runtime error 217 at 009aea39
在注册ocx时候 
先提示

应用程序发生异常 未知软件异常 (0x0eedfad),位置为0x7c81eb33

点确定后

runtime error 217 at 009aea39

这个。。 是注册的问题 还是程序生成ocx时候有问题呢?

[解决办法]
library ButtonXControl1;

uses
ComServ,
ButtonXControl1_TLB in 'ButtonXControl1_TLB.pas',
ButtonImpl1 in 'ButtonImpl1.pas' {ButtonX: CoClass};

{$E ocx}

exports
DllGetClassObject,
DllCanUnloadNow,
DllRegisterServer,
DllUnregisterServer;

{$R *.TLB}

{$R *.RES}

begin
end.

看看这里有没有少了东西

热点排行