开发者

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

开发者 https://www.devze.com 2022-12-15 10:50 出处:网络
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:

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

精彩评论

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

关注公众号