• <bdo id='dBzQt'></bdo><ul id='dBzQt'></ul>
    1. <small id='dBzQt'></small><noframes id='dBzQt'>

      <i id='dBzQt'><tr id='dBzQt'><dt id='dBzQt'><q id='dBzQt'><span id='dBzQt'><b id='dBzQt'><form id='dBzQt'><ins id='dBzQt'></ins><ul id='dBzQt'></ul><sub id='dBzQt'></sub></form><legend id='dBzQt'></legend><bdo id='dBzQt'><pre id='dBzQt'><center id='dBzQt'></center></pre></bdo></b><th id='dBzQt'></th></span></q></dt></tr></i><div id='dBzQt'><tfoot id='dBzQt'></tfoot><dl id='dBzQt'><fieldset id='dBzQt'></fieldset></dl></div>
      <tfoot id='dBzQt'></tfoot>

      1. <legend id='dBzQt'><style id='dBzQt'><dir id='dBzQt'><q id='dBzQt'></q></dir></style></legend>

        无需注册即可使用 OCX

        Use OCX without registering it(无需注册即可使用 OCX)

            <tbody id='bmGna'></tbody>

          1. <small id='bmGna'></small><noframes id='bmGna'>

            • <i id='bmGna'><tr id='bmGna'><dt id='bmGna'><q id='bmGna'><span id='bmGna'><b id='bmGna'><form id='bmGna'><ins id='bmGna'></ins><ul id='bmGna'></ul><sub id='bmGna'></sub></form><legend id='bmGna'></legend><bdo id='bmGna'><pre id='bmGna'><center id='bmGna'></center></pre></bdo></b><th id='bmGna'></th></span></q></dt></tr></i><div id='bmGna'><tfoot id='bmGna'></tfoot><dl id='bmGna'><fieldset id='bmGna'></fieldset></dl></div>
              • <bdo id='bmGna'></bdo><ul id='bmGna'></ul>
                <legend id='bmGna'><style id='bmGna'><dir id='bmGna'><q id='bmGna'></q></dir></style></legend>
                <tfoot id='bmGna'></tfoot>
                  本文介绍了无需注册即可使用 OCX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否可以在 winform 上使用 ocx(ActiveX 控件)(可能以编程方式添加)而无需先向 regsrv32 注册 ocx?

                  Is it possible to use an ocx (ActiveX Control) on a winform (probably adding it programatically) without first having the ocx registered with regsrv32?

                  我想要实现的是启用 xcopy 安装.我的开发机器生成了AxInterop..dll"和Interop..dll"文件.

                  What I'm trying to achieve is to enable xcopy installation. I've had the "AxInterop..dll" and "Interop..dll" file generated from my dev machine.

                  我已经看到了调用 COM dll 而不先注册它的可能性(ProSysLib,但我没有测试过然而),由于 ocx 也是基于 COM 的,因此我认为也必须有某种方法来做到这一点.

                  I've seen the possibility of calling a COM dll without first registering it (ProSysLib, according to the author, but I haven't tested it yet), since ocx is also COM based, thus I assume that there must be some way to do that as well.

                  推荐答案

                  是的,可以这样做.您必须假设您的应用程序将仅部署在 Windows XP(或 Windows Server 2003)或更高版本上,然后您可以使用所谓的免注册 COM"来实现这一目标.

                  Yes, this can be done. You must assume your application will only be deployed on Windows XP (or Windows Server 2003) or later, and then you can use what is called 'registration free COM' to make this happen.

                  基本上,您所做的是为 ActiveX 控件 DLL 创建一个清单文件,以便 Windows 加载程序和COM DLL 无需将其放入注册表即可知道其注册内容.

                  Essentially what you do is create a manifest file for the ActiveX control DLL so the Windows loader & COM DLL's know what its registration is without having to put that in the registry.

                  MSDN 上的这篇文章中介绍了要执行的操作:COM 组件的免注册激活:演练

                  A walkthrough of what to do is in this article on MSDN: Registration-Free Activation of COM Components: A Walkthrough

                  该文章中的第 6 步"和第 7 步"包含您需要的所有内容.

                  "Step 6" and "Step 7" in that article contain everything you will need.

                  我刚刚在我自己的一个使用 Microsoft ActiveX 网格控件(旧的MS Flex Grid")的 C# 程序上进行了尝试,它工作得很好.确保为应用程序和 COM DLL 创建清单文件,并在正确的位置替换适当的 GUID.如果手头没有这些 ID,您可能需要使用 OLEVIEW 从 ActiveX DLL 中挖掘出要使用的正确 ID.

                  I just tried this out on one of my own C# programs that uses a Microsoft ActiveX grid control (the old "MS Flex Grid") and it works just fine. Make sure you create a manifest file for both your application and the COM DLL, and substitute the appropriate GUIDs in the right places. You may need to use OLEVIEW to dig out the right IDs to use from the ActiveX DLL if you don't have them handy.

                  这篇关于无需注册即可使用 OCX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                  Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                  How can I force the PropertyGrid to show a custom dialog for a specific property?(如何强制 PropertyGrid 显示特定属性的自定义对话框?)
                  Associate attribute with code generated property in .net(将属性与 .net 中的代码生成属性相关联)
                  Attribute to generate compilation error on method call?(在方法调用上生成编译错误的属性?)
                  Can you omit the parenthesis from attributes with no params?(您可以省略没有参数的属性中的括号吗?)
                      <i id='3Z1g2'><tr id='3Z1g2'><dt id='3Z1g2'><q id='3Z1g2'><span id='3Z1g2'><b id='3Z1g2'><form id='3Z1g2'><ins id='3Z1g2'></ins><ul id='3Z1g2'></ul><sub id='3Z1g2'></sub></form><legend id='3Z1g2'></legend><bdo id='3Z1g2'><pre id='3Z1g2'><center id='3Z1g2'></center></pre></bdo></b><th id='3Z1g2'></th></span></q></dt></tr></i><div id='3Z1g2'><tfoot id='3Z1g2'></tfoot><dl id='3Z1g2'><fieldset id='3Z1g2'></fieldset></dl></div>

                          <tbody id='3Z1g2'></tbody>

                            <bdo id='3Z1g2'></bdo><ul id='3Z1g2'></ul>
                            <tfoot id='3Z1g2'></tfoot>
                          • <legend id='3Z1g2'><style id='3Z1g2'><dir id='3Z1g2'><q id='3Z1g2'></q></dir></style></legend>

                            <small id='3Z1g2'></small><noframes id='3Z1g2'>