We help IT Professionals succeed at work.
Get Started

Referencing a VB.NET DLL via COM from Visual C++ 6.0

Last Modified: 2013-11-17
A customer asked us to help integrate a quoting package developed by a third party to Microsoft CRM. MS-CRM uses a Web Services interface, so you pretty much have to use .NET for any integration development.

The third-party quoting package, however, is written in Visual C++. Porting the code for that app to .NET is not an option.

We decided to write a DLL in VB.NET, with the settings to expose the functions to COM, that would expose the needed functionality to MS-CRM; then, we figured, the C++ developer could use the DLL's COM interface to access MS-CRM.

We built the VB.NET DLL, and tested using it from a VB6 test application via COM, and it worked fine. However, the Visual C++ developer is unfamiliar with using COM, and we're not quite sure how to tell him to register COM component in his project. (We have no experience with Visual C++.)

Could someone provide step-by-step instructions on to register VB.NET COM component in a Visual C++ 6.0 environment?

We did use the RegAsm.exe utility to register the component on the machine, and the object does appear in the OLE Browser tool; however, the component does not show up in the interface for adding components.
Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE