Solved

Accessing a TLB library from vb6 application using late binding

Posted on 2013-11-03
3
108 Views
Last Modified: 2015-02-09
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
Comment
Question by:BMaadarani
  • 2
3 Comments
 
LVL 40
ID: 39620659
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
 

Accepted Solution

by:
BMaadarani earned 0 total points
ID: 40588443
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
 

Author Closing Comment

by:BMaadarani
ID: 40597918
I finally resolved the issue thru late binding calls from within Lotusscript.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now