[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 127
  • Last Modified:

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?
0
BMaadarani
Asked:
BMaadarani
  • 2
1 Solution
 
Jacques Bourgeois (James Burger)Commented:
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?
0
 
BMaadaraniAuthor Commented:
The reason for the late binding is because within LotusScript COM objects cannot be referenced, and thus the late binding. It would be so much easier to do an early binding in Lotusscript.
0
 
BMaadaraniAuthor Commented:
I finally resolved the issue thru late binding calls from within Lotusscript.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now