想法:在本机做一个测试的activex组件,生成.htm文件
安装IIS,让别人可以通过浏览器看见这个程序。以下是我的步骤,不知道错在哪了,在我这边可以运行,用http也可以,但是在别人的机器上不行。
1:先生成一个project
2:build生成.ocx
3:deploy
4:makecert
5:cert2spc
6:signcode
7:生成cab
(1)创建xu.inf,内容为
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
Sample_Atx.ocx=Sample_Atx.ocx
msvcrt.dll=msvcrt.dll
mfc42.dll=mfc42.dll
olepro32.dll=olepro32.dll
[Cert_Atx.ocx]
file-win32-x86=thiscab
clsid={75486221-8862-400C-9A34-3D6B449ABFF2}
FileVersion=1,0,0,0
RegisterServer=yes
[msvcrt.dll]
FileVersion=4,20,0,6164
hook=mfc42installer
[mfc42.dll]
FileVersion=4,2,0,6256
hook=mfc42installer
[olepro32.dll]
FileVersion=4,2,0,6068
hook=mfc42installer
[mfc42installer]
file-win32-x86=http://activex.microsoft.com/controls/vc/mfc42.cab
run=%EXTRACT_DIR%\mfc42.exe
(2)cabarc n Sample_Atx.cab Sample_Atx.inf Sample_Atx.ocx
(3)chktrust -v Sample_Atx.cab
(4)使用signcode按向导要求对cab文件签名
(5)将签名后的cab文件和相应的htm文件拷贝到代理服务器的地址下错在哪了??
安装IIS,让别人可以通过浏览器看见这个程序。以下是我的步骤,不知道错在哪了,在我这边可以运行,用http也可以,但是在别人的机器上不行。
1:先生成一个project
2:build生成.ocx
3:deploy
4:makecert
5:cert2spc
6:signcode
7:生成cab
(1)创建xu.inf,内容为
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
Sample_Atx.ocx=Sample_Atx.ocx
msvcrt.dll=msvcrt.dll
mfc42.dll=mfc42.dll
olepro32.dll=olepro32.dll
[Cert_Atx.ocx]
file-win32-x86=thiscab
clsid={75486221-8862-400C-9A34-3D6B449ABFF2}
FileVersion=1,0,0,0
RegisterServer=yes
[msvcrt.dll]
FileVersion=4,20,0,6164
hook=mfc42installer
[mfc42.dll]
FileVersion=4,2,0,6256
hook=mfc42installer
[olepro32.dll]
FileVersion=4,2,0,6068
hook=mfc42installer
[mfc42installer]
file-win32-x86=http://activex.microsoft.com/controls/vc/mfc42.cab
run=%EXTRACT_DIR%\mfc42.exe
(2)cabarc n Sample_Atx.cab Sample_Atx.inf Sample_Atx.ocx
(3)chktrust -v Sample_Atx.cab
(4)使用signcode按向导要求对cab文件签名
(5)将签名后的cab文件和相应的htm文件拷贝到代理服务器的地址下错在哪了??
先把生成的ocx文件拷到别人的机器上注册一下,然后就能显示了。
但是我已经生成了cab文件了
问什么还要copy