I have a C # assembly that is regasmed but not in the GAC. In my VB6 code, I added a link to the generated type library (.tlb file).
Then I instantiate C # lib in my VB6 code. If I run it from the VB6 IDE, it does not work. Setin the code below:
Dim obj as MyCSharpNamespace.MyCSharpObject
Set obj = New MyCSharpNamespace.MyCSharpObject
causes this error:
Automation error
The system cannot find the file specified
However, if I compile the VB6 project in EXE and run it, it works fine.
I must add that all the VB6 project files (e.g. forms, modules, etc.) are in the same folder as the C # DLL and TLB.
So why can't I start it from the IDE?
source
share