我首先用VC下的MFC ActiveX ControlWizard开发了一个ActiveX控件,编译成releas的静态库版。在本地能用应用程序测试,一切正常。用cabarc打包,在WEB上发布,有下载的提示,但始终不能注册成功。找不到原因,很是苦恼。而且,着急使用。请大家帮忙解答下。我的INF文件:
[version]
signature="$CHICAGO$"
AdvancedINF=1.0[Add.Code]
hOcx.ocx=hOcx.ocx
MSVCRTD.DLL=MSVCRTD.DLL
MFC42D.DLL=MFC42D.DLL
MFCO42D.DLL=MFCC042D.DLL
CPdaCP.dll=CPdaCP.dll //调用的自己编写的DLL
DbfComm.dll=DbfComm.dll//调用的自己编写的DLL
[MSVCRTD.DLL]
file-win32-x86=hOcxcab
FileVersion=6.0.8168.0
RegisterServer=yes[MFC42D.DLL]
file-win32-x86=hOcxcab
FileVersion=6.0.8168.0
RegisterServer=yes[MFCO42D.DLL]
file-win32-x86=hOcxcab
FileVersion=6.0.8168.0
RegisterServer=yes[CPdaCP.dll]
file-win32-x86=hOcxcab
FileVersion=1.0.0.0
RegisterServer=yes[DbfComm.dll]
file-win32-x86=hOcxcab
FileVersion=1.0.0.0
RegisterServer=yes[hOcx.ocx]
file-win32-x86=hOcxcab
RegisterServer=yes
clsid={F5669F75-384D-44CF-8B41-6CF7CD6CE5B8}
FileVersion=1,0,0,0打包D:\>cabarc -s 6144 n hOcx.cab mfc42d.dll mfco42d.dll msvcrtd.dll cpdacp.dll dbfcomm.dll hocx.ocx hocx.inf
HTML中调用:
<object width="0" height="0" id="myocx" classid="clsid:F5669F75-384D-44CF-8B41-6CF7CD6CE5B8" codebase="http://mypc/hOcx.cab#version=1,0,0,0"></object>WEB浏览
http://mypc/default.html错误提示:不支持的属性或方法。
请大家帮忙。谢谢
[version]
signature="$CHICAGO$"
AdvancedINF=1.0[Add.Code]
hOcx.ocx=hOcx.ocx
MSVCRTD.DLL=MSVCRTD.DLL
MFC42D.DLL=MFC42D.DLL
MFCO42D.DLL=MFCC042D.DLL
CPdaCP.dll=CPdaCP.dll //调用的自己编写的DLL
DbfComm.dll=DbfComm.dll//调用的自己编写的DLL
[MSVCRTD.DLL]
file-win32-x86=hOcxcab
FileVersion=6.0.8168.0
RegisterServer=yes[MFC42D.DLL]
file-win32-x86=hOcxcab
FileVersion=6.0.8168.0
RegisterServer=yes[MFCO42D.DLL]
file-win32-x86=hOcxcab
FileVersion=6.0.8168.0
RegisterServer=yes[CPdaCP.dll]
file-win32-x86=hOcxcab
FileVersion=1.0.0.0
RegisterServer=yes[DbfComm.dll]
file-win32-x86=hOcxcab
FileVersion=1.0.0.0
RegisterServer=yes[hOcx.ocx]
file-win32-x86=hOcxcab
RegisterServer=yes
clsid={F5669F75-384D-44CF-8B41-6CF7CD6CE5B8}
FileVersion=1,0,0,0打包D:\>cabarc -s 6144 n hOcx.cab mfc42d.dll mfco42d.dll msvcrtd.dll cpdacp.dll dbfcomm.dll hocx.ocx hocx.inf
HTML中调用:
<object width="0" height="0" id="myocx" classid="clsid:F5669F75-384D-44CF-8B41-6CF7CD6CE5B8" codebase="http://mypc/hOcx.cab#version=1,0,0,0"></object>WEB浏览
http://mypc/default.html错误提示:不支持的属性或方法。
请大家帮忙。谢谢
解决方案 »
- CListCtrl int InsertItem(int nItem, LPCTSTR lpszItem, int nImage);
- 窗口大小改变 CHTMLView闪烁
- error C2664: 'FromFile' : cannot convert parameter 1 from 'class CString' to 'const unsigned short *
- 哪位做过Vista效果的ProgressBar
- 我把文件-打开菜单重写了,但最近文件就无效了!
- 郁闷我好几天的图象处理问题...
- 求<<Visual c++游戏开发技术与实例>> 一书的光盘源代码!谢谢了!
- 请教哪位做过ccd的开发?有神么例子吗?
- CString如何转换成VIARANT型的变量
- 请教为什么在vc下只能对用绝对路径表示的文件进行操作???????????
- 对于其他程序, 可否进行子类化?
- 请教大家一个问题:如何在对话框中画一条“分隔线”?类似 VC6的about对话框底部那条线!!
http://blog.csdn.net/gjd111686/gallery/27646.aspx