Using VB.NET in VB6

  • Thread starter Kevin S Gallagher
  • Start date
K

Kevin S Gallagher

I am looking for any technical articles i.e. MSDN or other sources
explaining how to incorperate VB.NET into VB6 projects in the form of a .NET
DLL.

Thanks for any assistance,
Kevin
 
M

Michel Posseth [MCP]

I have done this numerous times and it is verry easy the buzzword is COM
:)


Just implement a Com interface in your .Net dll register it on the target
machine ( with a installer or Regasm no not with regsvr32.exe )
and ready you are you can just use it as anny other COM class

Note that a Com class must implent a parmeterless constructor

regards

Michel
 
D

Dick Grier

Hi,

Go to http://www.microsoft.com/business/vb2005upgrade/default.mspx. There
are two online labs (Labcast button) that show two techiques (both use COM,
but the first, titled: Incorporating Visual Basic .NET Windows Forms with
Visual Basic 6 Applications may do all that you need.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
K

Kevin S Gallagher

Thanks Michel

Michel Posseth said:
I have done this numerous times and it is verry easy the buzzword is COM
:)


Just implement a Com interface in your .Net dll register it on the target
machine ( with a installer or Regasm no not with regsvr32.exe )
and ready you are you can just use it as anny other COM class

Note that a Com class must implent a parmeterless constructor

regards

Michel
 
S

SAL

Oh, maybe just one more little tibbit here. I would fully debug the thing in
..NET before trying to debug it mixing the environments. I've found that to
be a total pain.

S
 

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