【问题标题】:Need the name of the OCX file for the DLL需要 DLL 的 OCX 文件的名称
【发布时间】:2011-12-25 11:57:22
【问题描述】:

我有一个 .Net 项目,其中包含以下 dll:

  • AxInterop.Crystal.dll (comctl32.ocx)
  • AxInterop.MSACAL.dll
  • AxInterop.MSDBGrid.dll
  • AxInterop.MSFlexGridLib.dll

我需要注册 OCX 来运行我的项目。谁能帮我找出 OCX 文件的名称?

谢谢

【问题讨论】:

  • 您列出了 4 个 DLL。这些是什么?他们是你的 OCX 吗?什么是 comctl32.ocx?

标签: .net vb.net ocx


【解决方案1】:

这些是上个世纪的 VB6 控件。您需要找到一台仍然有它们的机器,在 c:\windows\system32 中查找。 .ocx/.dll 文件名应该相当接近。我知道的有 comctl32.ocx、mscal.ocx、dbgrid32.ocx 和 msflxgrd.ocx。让 Crystal Reports 运行起来应该很困难,它从来都不是 VB6 的一个组成部分,并且需要一堆 DLL。这些控件还具有许可验证,您将无法在设计模式下使用它们。这需要 VS6 或 VB6 许可证。您只能在 eBay 等拍卖网站获得 VS6 许可证,VB6 可通过 MSDN 订阅获得。

如果你觉得这个软件越来越难以维护,那么你是对的。

【讨论】:

    【解决方案2】:

    你试过REGSVR32

    To register a module, you must provide a binary name.
    
    Usage: regsvr32 [/u] [/s] [/n] [/i[:cmdline]] dllname
    /u -    Unregister server
    /s -    Silent; display no message boxes
    /i -    Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall
    /n -    do not call DllRegisterServer; this option must be used with /i
    

    【讨论】:

    • 我能够在我的项目中添加引用,但在运行时我让类没有注册异常。AxInterop.Crystal.dll(comctl32.ocx)我试过这个很清楚异常。所以只是在问其他ocx文件名
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-31
    • 1970-01-01
    相关资源
    最近更新 更多