ActiveX发布最后一步,创建CAB文件,在命令行中输入"cabarc -s 6144 n demo.cab atl90.dll Polygon.dll demo.inf"后,
系统报错:
Microsoft (R) Cabinet Tool - Version 5.2.3668.0
Copyright (c) Microsoft Corporation. All rights reserved..
Creating new cabinet 'demo.cab' with compression 'MSZIP':
FCIAddFile() failed: code 1 [Failure opening file to be stored in cabinet]
具体参照的是这篇文章
http://www.cnblogs.com/gengaixue/archive/2010/08/13/1799112.html
何解?求解答。
附上.inf文件
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
ActivexDemo.ocx=ActivexDemo.ocx
demo.inf = demo.inf
[ActivexDemo.ocx]
file-win32-x86=thiscab
RegisterServer=yes
clsid={5DCFE3E9-C435-407D-AC1F-5205091A64F2}
DestDir=11
FileVersion=1,0,0,1
[demo.inf]
file=thiscab
------解决方案--------------------
“cabarc -s 6144 n demo.cab demo.inf” 不要“atl90.dll Polygon.dll”
------解决方案--------------------
好吧,我错了,这样没有给dll签名到运行控件时会提示未验证发行者,还是有可能给杀毒软件灭掉~ 找出你ocx要用到的dll,也一同签名了~ 我也是在学,加勒个油~