I know a company that lost its source code to a VB6 DLL that exposes COM. Is it possible to wrap, or orverride properties, methods, etc of this object to be more modern?
What technology should I use? What approaches should I take?
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.
I would wrap it in a new C# class and expose only minimum functionality to the calling code (probably via an interface). This way, some functionally can be gradually rewritten in C# without affecting the calling client.
And yes, utilize interop to create a runtime-callable wrapper.
Calling .NET code -> your new .NET class wrapper -> the COM dll via the runtime-callable wrapper.
Now even though you are not literally overriding functions or properties… you can still accomplish this via your wrapper class.