Calling Vb6 from c#

M

MikeJ

hi im looking for examples to call a dll from C#
this vb6 dll has no UI
i am building a new application in c# for new projects
but i have to work with old vb6 stuff.....
will convert the old when i have the time...

TIA
MJ
 
N

Nicholas Paldino [.NET/C# MVP]

MJ,

Basically, you can add a reference to your registered dll. All you have
to do is go to the "COM" tab of the "Add References" dialog that appears and
then find your dll and add a reference. VS.NET will create an interop
assembly which you can then call your COM types through.

Just make sure that when you distribute your app, you register your COM
components correctly (or use no-reg COM if you are able to) on the target
machine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top