Solved

Accessing a TLB library from vb6 application using late binding

Posted on 2013-11-03
3
121 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

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

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

705 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