georgbuehler
asked on
Referencing a VB.NET DLL via COM from Visual C++ 6.0
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.
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.
ASKER
We know how to _register_ the COM component. As I said in the question, the COM component is correctly registered and working. What we don't know is the correct way to _reference_ the COM component in Visual C++ . . . what's the correct way to _use_ the component in that environment?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. The C++ programmer is still puzzling over the links, so I'm not entirely sure if we have the full solution, but it looks like exactly the information I was looking for.
http://support.microsoft.com/?scid=kb%3Ben-us%3B249873&x=19&y=11
Regards
Friedrich