Using a VB.NET DLL file in C++ - class is abstract
-
19-09-2019 - |
Question
I created a VB.NET DLL file which I am using in an unmanaged C++ project.
When I try to create an object of the class, I am getting an error:
cannot instantiate abstract class
Why would my class be abstract? How can I modify it so that it won't be abstract?
Solution
That's not how it works, you have to write COM code in C++ to use it. Take a good look at the #import directive and the smart pointers it creates.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow