Managed to answer this one myself so hope its useful for someone:
solution was to put the VB6 dll and the .NET dll into the same folder as the calling exe and register i.e. regsvr32 VB6DLL_name.dll and
regasm DOTNETDLL_name. dll /tlb:DOTNETDLL_n ame.tlb (Framework version 1.1)
Could have put the files in any folder if I'd used the /codebase option with regasm and could have made the assembly shared (instead of private) if I'd created...
User Profile
Collapse
-
Deploy a .NET class library that is registered for COM interop
I have a VB6 DLL that has a reference to a .NET class library. I can deploy both using the deployment packages that come with Vb6 and VS 2003 respectively but I need a silent install with no windows popping up. VB6 not a problem as just use regsvr32 but although I use regasm on the .NET dll and get a "success" message I get error "Activex component cannot create object" when I try to call a function inside it. any ideas?
No activity results to display
Show More
Leave a comment: