• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 470
  • Last Modified:

interop for vb6 dll

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
g_johnson
Asked:
g_johnson
  • 2
1 Solution
 
käµfm³d 👽Commented:
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
 
g_johnsonAuthor Commented:
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
 
g_johnsonAuthor Commented:
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

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now