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

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

posted on 2013-04-27 14:43  norsd  阅读(442)  评论(0编辑  收藏  举报

导航