Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / April 2006

Tip: Looking for answers? Try searching our database.

Using .NET dll from VB6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
uwe.braunholz@hotmail.de - 20 Apr 2006 15:11 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.