VC.net 创建 ref class 后, C#调用报错 Cannot create an instance of the abstract class or interface CS0144

来源:互联网 发布:jdk 8u20 windows x64 编辑:程序博客网 时间:2024/06/09 16:56

VC.net 创建 ref class 后


 C#调用报错 Cannot create  an instance of the abstract class or interface  CS0144


同样的错误:http://computer-programming-forum.com/7-vc.net/aa44def3c57690b4.htm


发现如上面链接所说,他是vc.net 继承了一个.net的abstract Class , 但是没有override 所有应该override的方法


所以这个 ref class 本身也变成了 abstract 属性


所以会有如此错误。


我的代码也是继承了 CommonDialog 这个abstract class 而没有override

原创粉丝点击