I have an application written in VB6, and I need to use a library written in .NET. Is there any way to use the library on my application?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends. Do you have control over the .NET library?
If so, you can modify your library so that it can be registered as a COM component. You can then utilize the COM component from VB6.
You can follow this CodeProject tutorial for step by step directions on creating a COM component in .NET, registering it, and then calling it from VB6:
Exposing .NET Components to COM