.NET DLL to VB6 project?

M

Marty

Hi,

I've been askaing previously if a .NET windows control library (DLL) was
handled by VB6, the answer was and is still no.

But, I have a project library (an API) made in .NET, and my project is
in VB6. I really need a .NET component that could wrap my .NET project
library and make it portable to my VB6 project.

Is it possible to do that?

Thanks you very much.

Marty
 
H

Herfried K. Wagner [MVP]

Marty said:
But, I have a project library (an API) made in .NET, and my project is in
VB6. I really need a .NET component that could wrap my .NET project
library and make it portable to my VB6 project.

You can make non-Windows Forms classes ready for use with VB6:

..NET Framework Developer's Guide -- Exposing .NET Framework Components to
COM
<URL:http://msdn.microsoft.com/library/en-us/cpguide/html/cpconexposingnetframeworkcomponentstocom.asp>

Visual Basic Language Concepts -- COM Interop
<URL:http://msdn.microsoft.com/library/en-us/vbcn7/html/vaconCOMInteroperability.asp>

Nevertheless, you cannot use .NET Windows Forms controls in VB6.
 

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