开发者

Using a VB.NET DLL file in C++ - class is abstract

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 instanti开发者_开发问答ate abstract class

Why would my class be abstract? How can I modify it so that it won't be abstract?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜