error MIDL2311 解决方法

error MIDL2311 : statements outside

library block are illegal in mktyplib

compatability mode : []

 

在编译COM类型库的时候,出现如下错误:

error MIDL2311 : statements outside library block are illegal in mktyplib compatability mode : [ ]

 

解决方法:project-->settings-->MIDL-->把MkTyplib compatible前面的勾去掉就ok了!

 

posted @ 2018-02-02 15:59  wenglabs  阅读(694)  评论(0编辑  收藏  举报