我用ATL写的组件,在Win98下面不能注册,我应该把哪些文件打包到安装程序里面?
解决方案 »
- PostMessage使用疑问!?:(
- 添加一个消息映射始终方法错误!新手求救!
- 问个VS2005不知道有没有的功能!
- 求VC统计图ActiveX控件
- 关于CString的奇怪的问题,不知道大家有没有遇到过?
- 在OCX里调用DLL时,为什么一定要把DLL放在桌面才能Loadlibray成功
- 急求救:为何不能打开串口?
- 同样的代码在OnPaint中有正常的效果,而在OnEraseBkgnd中却没有显示出来,这是为什么?
- 如何固化软件程序到硬件?
- 怎么从char*转换为BSTR类型.
- 菜鸟的一个关于绘图和映象方式的问题,请大家帮忙,急!!!
- 我想查找替换二进制文件中的特定字符串,出现位置偏移错误,各位帮帮我,在线等待!
我试过了,ATL.DLL文件也不能注册呀错误提示:
LoadLibrary("c:\windows\system\atl.dll") failed.
GetLastError returns 0x00000485
修改安装控件的inf文件来自动安装atl3.0
[Add.Code]
;This is the main control
readhdsn.dll=readhdsn.dll; Add all your dependent DLLS here, listing most dependent first
; Note that atl.dll is not necessary if your project is built
; as MinDependency
gogogo.dll=gogogo.dll
atl.dll=atl.dll
[atl.dll]
; This is the version of atl.dll that shipped with VS 6.0 SP3
; If a newer version is available, update the version number here
FileVersion=3,0,8168,0
; This is an example of conditional hook. The hook only gets processed
; if atl.dll of the specified version is absent on client machine.
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.