Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile C#.net dll for VB6

Tags:

c#

dll

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?

like image 922
kelvinfix Avatar asked Aug 04 '11 00:08

kelvinfix


People also ask

What does it mean to compile in C?

Compiling a C Program. Compiling is the transformation from Source Code (human readable) into machine code (computer executable).

Do you need to compile C?

C is a mid-level language and it needs a compiler to convert it into an executable code so that the program can be run on our machine.


1 Answers

Yes, if you expose your DLL as a COM component.

like image 183
Dan Abramov Avatar answered Sep 22 '22 19:09

Dan Abramov