Hello,
I want to use a .NET classlibrary from my VB 6-Application. There are
some tutorials for that, but I want to do some specials.
In some thread I read, it would be possible to place the .net dll in
the apps-dir and I would not have to register the dll on the target
system.
How can I add the reference to my vb6 application then?
I went into another problem. I was not able to add a reference on a
.net dll at all. It seems like i have to add the reference on a
matching .tbl file. But where do i get this file from. I configured my
.NET (2.0) dll to be viewable from COM, and checked it sould be
registered for COM, but nothing did help.
I hope someone can help me!
Thank you.
Regards,
Uwe
Kenny - 23 Apr 2006 09:39 GMT
You should be able to do this. Create a .tlb for your .NET assembly
using regasm, then reference the tlb from your VB 6 program, however
instead of registering the .NET object as a .COM object, get a
reference to the CLR from VB6 and from there use methods to load the
assembly expliclty and instaniate the .NET class from there. it should
work. I've done it.
uwe.braunholz@hotmail.de - 24 Apr 2006 09:11 GMT
Hello Kenny,
Thank you for this answer. I will try the way you described it.