Solved

interop for vb6 dll

Posted on 2013-05-14
3
459 Views
Last Modified: 2013-05-21
We have created a VB6 dll that will need to be referenced in a .Net (VS 2010) project.  Normally when I reference com dlls, such as Microsoft.Excel, I see an interop being created in the references.  When I reference this dll, by browsing to it, the reference is created, but without the interop.  Do I somehow need to create an interop?  How do I do that?
0
Comment
Question by:g_johnson
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 39165784
Did you build the VB6 DLL as a COM component? I'm not fully sure why there are Interop* libraries for Office libraries (maybe they are wrappers around the new libraries), but if you exposed your VB6 as a COM component, then you should be able to use the library once you add the reference--no need to worry about an "Interop" piece.
0
 
LVL 4

Author Comment

by:g_johnson
ID: 39166066
I guess I don't know what you mean by "build as a COM component."  I'm not the VB6 programmer, but all we do is "Make" the dll.
0
 
LVL 4

Author Closing Comment

by:g_johnson
ID: 39185409
As it turns out, the Interop was created, i.e., an interop file existed in the bin folder, but it didn't have "interop" in the reference name in the IDE like I'm used to seeing.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 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

13 Experts available now in Live!

Get 1:1 Help Now