ActiveX控件部署 [英] ActiveX control deploying

查看:87
本文介绍了ActiveX控件部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#.net中开发了一个类库,并将该文件作为activeX控件
网页启动.获得dll之后,我开发了.inf文件,就像这样

hi   I developed one class liabrary in C# .net and i am launching that file as activeX control
     web page.After i get dll i developed .inf file its like this


[version]
;版本签名(NT和Win95都相同)不会删除
signature ="$ CHICAGO $"
AdvancedINF = 2.0


[version]
; version signature (same for both NT and Win95) do not remove
signature="$CHICAGO$"
AdvancedINF=2.0 

[添加代码]
TIFActiveX.ocx = TIFActiveX.ocx
TIFImageEditor.dll = TIFImageEditor.dll
sharpPDF.dll = sharpPDF.dll

[Add.Code]
TIFActiveX.ocx=TIFActiveX.ocx
TIFImageEditor.dll=TIFImageEditor.dll
sharpPDF.dll=sharpPDF.dll

[sharpPDF.dll]
file-win32-x86 = thiscab
FileVersion = 1,0,1870,19498
DestDir = 11
RegisterServer = yes

[sharpPDF.dll]
file-win32-x86=thiscab
FileVersion=1,0,1870,19498
DestDir=11
RegisterServer=yes

[TIFImageEditor.dll]
file-win32-x86 = thiscab
clsid = {89AFC042-93BC-4e72-AA00-343F6CF782EC}
FileVersion = 1,0,0,0
RegisterServer =是

[TIFImageEditor.dll]
file-win32-x86=thiscab
clsid={89AFC042-93BC-4e72-AA00-343F6CF782EC}
FileVersion=1,0,0,0
RegisterServer=yes 

[TIFActiveX.ocx]
file = thiscab
RegisterServer = yes
FileVersion = 1,0,0,0
; INF文件结束

[TIFActiveX.ocx]
file=thiscab
RegisterServer=yes
FileVersion=1,0,0,0
; end of INF file

这次我将类库包装在MFC中,然后得到.OCX文件并使用.dll,.ocx,.inf
我得到了.cab文件,并使用此命令sign.ll签署了该.cab文件登录/f .pfx/p .cab.
然后我在网页中启动该cab文件,如.aspx页面就是这样

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆