• <small id='3No3b'></small><noframes id='3No3b'>

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

        不能在 COM 客户端中添加引用 COM?

        Can not add reference a COM in COM client?(不能在 COM 客户端中添加引用 COM?)
      1. <small id='48lZk'></small><noframes id='48lZk'>

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

          <tfoot id='48lZk'></tfoot>

            <legend id='48lZk'><style id='48lZk'><dir id='48lZk'><q id='48lZk'></q></dir></style></legend>

                <tbody id='48lZk'></tbody>
              • <bdo id='48lZk'></bdo><ul id='48lZk'></ul>

                  本文介绍了不能在 COM 客户端中添加引用 COM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  创建了一个 COM 服务器,我注册了它.

                  A COM server is create and I registerd that.

                  当我尝试在 COM 客户端中添加该 COM 服务器时,我无法添加,并且出现以下错误.

                  When I am trying to add that COM server in a COM Client, I was not able to add, and following error is comming.

                  " 不能引用 'COMTest'被添加

                  " A reference to 'COMTest' could not be added

                  ActiveX 类型库'cuser~DebugCOMTest.tlb' 是从 .NET 程序集导出并且可以不作为参考添加.

                  The ActiveX type Library 'cuser~DebugCOMTest.tlb' was exported from a .NET assembly and can not added as a reference.

                  改为添加对 .NET 的引用

                  Add a reference to .NET instead "

                  谁能告诉我是什么错误.我以两种方式注册了 COM,也从 VS 也尝试了命令提示符.

                  can anybody tell me What is the mistake. I register the COM in both way, from VS also and also tried with command prompt.

                  推荐答案

                  这是一个你为什么要这样做"的消息.项目+添加引用,浏览选项卡,选择DLL,而不是TLB.因此,您将直接使用 .NET 类,而不是通过 COM 互操作两次.

                  This is a "why on Earth would you do that" message. Project + Add Reference, Browse tab, select the DLL, not the TLB. So you'll use the .NET class(es) directly instead of going through the COM interop twice.

                  这篇关于不能在 COM 客户端中添加引用 COM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Performance overhead of using attributes in .NET(在 .NET 中使用属性的性能开销)
                  Accessing attribute info from DTE(从 DTE 访问属性信息)
                  c# Hide a property in datagridview with datasource(c#使用数据源隐藏datagridview中的属性)
                  Extract Display name and description Attribute from within a HTML helper(从 HTML 帮助器中提取显示名称和描述属性)
                  C# Attributes and their uses(C# 属性及其用途)
                  C# - Getting all enums value by attribute(C# - 按属性获取所有枚举值)
                    • <tfoot id='9W0bx'></tfoot>

                    • <small id='9W0bx'></small><noframes id='9W0bx'>

                        <tbody id='9W0bx'></tbody>

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