Solved

Accessing a TLB library from vb6 application using late binding

Posted on 2013-11-03
3
102 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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

16 Experts available now in Live!

Get 1:1 Help Now