Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 473
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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