制作的cab包含如下的东东 一个控件 一个.inf 还用到了一个dll 是direcx8.1带的
inf 如下
; version number and signature of INF file;
;
[version]
signature="$CHICAGO$"
AdvancedINF=2.0; The order of files in this seciton defines the download order.
[Add.Code]
myvoip.ocx=myvoip.ocx
dsound.dll=dsound.dll[dsound.dll]
file-win32-x86=thiscab
FileVersion=5,1,2600,881
Clsid={aec15949-3c64-4f55-a220-7965034c3986}
RegisterServer=no
Hook=installdll[myvoip.ocx]
file-win32-x86=thiscab
FileVersion=1,0,0,1
RegisterServer=yes
DestDir=%OBJECT_DIR%
Clsid={aec15949-3c64-4f55-a220-7965034c3986}
Hook=regnewocx[regnewocx]
run=regsvr32 /u/s %OBJECT_DIR%\myvoip.ocx
run=regsvr32 /s %OBJECT_DIR%\myvoip.ocx[installdll]
run=copy %EXTRACT_DIR%\dsound.dll %OBJECT_DIR%\dsound.dll我的问题是 我在win2k以上的版本都没有问题 但是在winme下智能下载 注册不了
载98下 根本下载不了 高手解决一下
inf 如下
; version number and signature of INF file;
;
[version]
signature="$CHICAGO$"
AdvancedINF=2.0; The order of files in this seciton defines the download order.
[Add.Code]
myvoip.ocx=myvoip.ocx
dsound.dll=dsound.dll[dsound.dll]
file-win32-x86=thiscab
FileVersion=5,1,2600,881
Clsid={aec15949-3c64-4f55-a220-7965034c3986}
RegisterServer=no
Hook=installdll[myvoip.ocx]
file-win32-x86=thiscab
FileVersion=1,0,0,1
RegisterServer=yes
DestDir=%OBJECT_DIR%
Clsid={aec15949-3c64-4f55-a220-7965034c3986}
Hook=regnewocx[regnewocx]
run=regsvr32 /u/s %OBJECT_DIR%\myvoip.ocx
run=regsvr32 /s %OBJECT_DIR%\myvoip.ocx[installdll]
run=copy %EXTRACT_DIR%\dsound.dll %OBJECT_DIR%\dsound.dll我的问题是 我在win2k以上的版本都没有问题 但是在winme下智能下载 注册不了
载98下 根本下载不了 高手解决一下
解决方案 »
- listctrl 怎样动态改变图标? icon风格
- 在不响应按键输入的窗口,每次按下时,都会发出“咚咚咚”的声音,如何去掉?
- 大家帮忙解释一下m_HorzScroll.SetScrollInfo (&m_siHorz);中的SetScrollInfo是什么,谢谢!
- 如何使编辑控件响应鼠标双击事件
- 使用串口的问题
- 如何用vc作类似网络实名的搜索页?????
- 那些情况下要考虑多线程编程
- BOOL、TRUE、FALSE、UINT与bool、true、false、unsigned int等有什么区别??
- 各位大哥,请问没有CRichDoc支持,能不能调用CRichEdit?
- vc编译错误C1010该如何解决?
- 钩挂OpenProcess之后。。。
- CreateProcess一个新进程后,想让新进程运行起来就打开了它的菜单项,怎么操作?
提示用户安装Dx8.1,或直接从M$的服务器上下载,不要在控件中集成dsound.dll
那样不会安装Dx8.1的
具体做法请参见MSDN:INF File Architecture
对于win98即使用静态编译atl有时还是不行,只有让客户端安装atl3.0了,安装方法如下!
inf 例子:[Add.Code]
yourctl.dll=yourctl.dll
atl.dll=atl.dll
[atl.dll]
hook=ATLinstaller
[ATLinstaller]
file-win32-x86=http://activex.microsoft.com/controls/vc/atl.cab
; change the above URL to your atl.cab located as you like
; The atl.cab file actually contains a self extracting executable.
; In this case we specify a run= command
run=%EXTRACT_DIR%\atl.
后来,我在win98下安装VC6.0编译之,而后再加入atl安装代码就ok了!
不建议在cab包中加入dsound.dll
否则麻烦大大地!