我用ATL写的组件,在Win98下面不能注册,我应该把哪些文件打包到安装程序里面?

解决方案 »

  1.   

    newkey007(无限天空) :
    我试过了,ATL.DLL文件也不能注册呀错误提示:
    LoadLibrary("c:\windows\system\atl.dll") failed.
    GetLastError returns 0x00000485
      

  2.   

    不能编译成unicode版,98不支持的,还有编译的时候最好用release MinDependency。
      

  3.   

    release MinDependency 这个选想在那里设呀
      

  4.   

    主菜单-》build-》set active configuration
      

  5.   

    需要atl3.0运行库!
    修改安装控件的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.