<tfoot id='0r6QH'></tfoot>

      <small id='0r6QH'></small><noframes id='0r6QH'>

      <i id='0r6QH'><tr id='0r6QH'><dt id='0r6QH'><q id='0r6QH'><span id='0r6QH'><b id='0r6QH'><form id='0r6QH'><ins id='0r6QH'></ins><ul id='0r6QH'></ul><sub id='0r6QH'></sub></form><legend id='0r6QH'></legend><bdo id='0r6QH'><pre id='0r6QH'><center id='0r6QH'></center></pre></bdo></b><th id='0r6QH'></th></span></q></dt></tr></i><div id='0r6QH'><tfoot id='0r6QH'></tfoot><dl id='0r6QH'><fieldset id='0r6QH'></fieldset></dl></div>
      • <bdo id='0r6QH'></bdo><ul id='0r6QH'></ul>
      <legend id='0r6QH'><style id='0r6QH'><dir id='0r6QH'><q id='0r6QH'></q></dir></style></legend>
    1. c# 类的属性在 Visual Basic 6.0 中不可见

      时间:2023-07-25

        • <legend id='Yle0N'><style id='Yle0N'><dir id='Yle0N'><q id='Yle0N'></q></dir></style></legend>

            <bdo id='Yle0N'></bdo><ul id='Yle0N'></ul>
          • <small id='Yle0N'></small><noframes id='Yle0N'>

              <tfoot id='Yle0N'></tfoot>

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

                本文介绍了c# 类的属性在 Visual Basic 6.0 中不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我在 c# 中创建了一个类,并使 com 可见属性为 true.但是,我在 Visual Basic 6.0 中看不到它的属性.可能是什么问题?请帮帮我

                I have created a class in c# and made the com visible property is true. But, i could not see the its properties at visual basic 6.0. what could be a problem? please help me

                推荐答案

                定义一个也是 ComVisible 的公共接口,并让你的类实现它.

                Define a public interface that is also ComVisible, and have your class implement that.

                然后使用 tlbexp.exe 从您的 C# 程序集生成类型库:

                Then use tlbexp.exe to generate a type libary from your C# assembly:

                tlbexp ComServer.dll /out:ComServer.tlb
                

                您需要从 VB6 添加对类型库的引用,而不是程序集.那么VB6如何知道你的程序集实际在哪里呢?Regasm 是怎么回事.它相当于 .net 程序集的 regsvr32.

                You need to add a reference to the type library from VB6, not the assembly. How does VB6 know where your assembly actually is then? Regasm is how. It is the equivalent of regsvr32 for .net assemblies.

                regasm ComServer.dll
                

                这篇关于c# 类的属性在 Visual Basic 6.0 中不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:将 C++ 字符串/wchar_t* 转换为 C# 字符串? 下一篇:C# 组件事件?

                相关文章

                1. <legend id='TCoG7'><style id='TCoG7'><dir id='TCoG7'><q id='TCoG7'></q></dir></style></legend>
                  • <bdo id='TCoG7'></bdo><ul id='TCoG7'></ul>

                2. <small id='TCoG7'></small><noframes id='TCoG7'>

                    <tfoot id='TCoG7'></tfoot>

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