Link to home
Start Free TrialLog in
Avatar of BMaadarani
BMaadarani

asked on

Accessing a TLB library from vb6 application using late binding

Hi,

Unfortunately, I still have some applications that must run from within a VB6 environment, and yet reference libraries created in vb.net. So here is the question:

I created a Class library within vb.net, and then using REGASM, I exported the library into .TLB file. Now, no matter what I don, I am unable to create a late binding object of the library I created.

what am I missing?
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

First of all, in your .NET library, you need to make sure that the "Register for COM Interop" checkbox is set in the Compile tab of the project's Properties Window.

You should also make sure that in the Application tab, under Assembly Information, "Make assembly COM-Visible" is checked and a GUID is defined.

Finally, why go for late binding if you know beforehand what classes you will use?
ASKER CERTIFIED SOLUTION
Avatar of BMaadarani
BMaadarani

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BMaadarani
BMaadarani

ASKER

I finally resolved the issue thru late binding calls from within Lotusscript.