PDA

View Full Version : Need to use a .NET class library (dll) in VB6


Jim S
11-25-07, 19:01
I have been helping create some test software for my work and had originally done it in VB6 with an Activex exe control. It contains functions that would be useful for anyone to write quick programs to test hardware. I just rewrote all the functions in C++ .Net using a class library instead. This dll will work for C++ and VB .Net, but I would like to make this dll backwards compatible with VB6 so I wont have to keep the Activex exe. I tried using the regasm with the /tlb flag. The COM object will show up in VB6 and It shows that it contains a class, but no functions within the class pop up in VB6. Is there something else to this that I am missing?

Kodo
11-30-07, 10:52
Did you mark the assembly as COM visible in the assembly properties on the properties of the project?