views:

130

answers:

1

I created a vb.net dll 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?

A: 

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.

Hans Passant