Calling Vb6 from c#

  • Thread starter Thread starter MikeJ
  • Start date Start date
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
 
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.
 
Back
Top