Solved

interop for vb6 dll

Posted on 2013-05-14
3
461 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 75

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

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

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

23 Experts available now in Live!

Get 1:1 Help Now