Click here to Skip to main content
15,885,998 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi there,

I want to implement c#-dlls into a vb6-project. Everything works fine at both developers' computers as long as the dlls are compiled there and registered for COM interop via Project Options.
When the finished exe is transferred to another PC and the dlls are there registered using regasm it still works - except for events fired from one of the dlls, they never occur.
(True also for the second developer's computer before the dll was compiled there too)
Having a look at the registry it turns out the event is registered and linked there at the developers' computers but not at the target pc though it appears at the tlb. Seems only the event is missing in the registry, classes are there.

What do I do wrong or what is missing?
I'm not even sure if this is where the problem might come from, tried out everything I could think of and googled for hours.. (eg. strong name is no option as other 2nd source dlls in the project don't have strong names - the project can't be compiled using a key)
I'd really appreciate any hint...
Posted

I guess this is a legacy project ? I have no idea what registry keys are used ( I've never used VB6 and never will ), but, if a registry key is all you need, can you just add that key in your app and make it work that way ?
 
Share this answer
 
Thank you for the guess :) - looks like it's something vb6-specific, for the target computer to understand the exe it has to be transferred per a complete setup, visual studio for vb6 supplies tools for that. now it works at the target computer.

i'm not sure yet if other developers can use the dll for other projects without compiling it at their computer, i'll update...

for other developers: registered with regasm, useed /codebase even if assembly can't be strong named and it works for the moment
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900