Need to use a .NET class library (dll) in VB6

Discussion in 'Software' started by Jim S, Nov 25, 2007.

  1. Jim S

    Jim S Private E-2

    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?
     
  2. Kodo

    Kodo SNATCHSQUATCH

    Did you mark the assembly as COM visible in the assembly properties on the properties of the project?
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds