为VB6编译C#.net dll

时间:2011-08-04 00:25:38

标签: c# dll vb6

我创建了一个类似下面的简单类:

using System;
using System.Text;

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

我可以从VB6代码调用此函数吗?

1 个答案:

答案 0 :(得分:9)

是的,如果你expose your DLL as a COM component