简体   繁体   English

为VB6编译C#.net dll

[英]Compile C#.net dll for VB6

I create a simple class like the one below: 我创建了一个简单的类,如下所示:

using System;
using System.Text;

namespace Seed
{
    class Plant
    {
       public string Planting () 
       {
        ....
       }
    }
 }

Can I call this function from VB6 code? 我可以从VB6代码调用此函数吗?

是的,如果您将DLL公开为COM组件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM