码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-11-25 19:20:22      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:

解决办法:

1. Do not use the /mktyplib203 switch unless you have to deal with legacy code dating back to mktyplib ver.2.03.

2.  In the .odl file, put the following inside the library block:

     #include <olectl.h>

参考资料:

https://social.msdn.microsoft.com/Forums/en-US/5ae2ed97-66cc-4dd8-ad88-4245f93d7628/error-midl2311-statements-outside-library-block-are-illegal-in-mktyplib-compatability-mode?forum=vcgeneral

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

标签:

原文地址:http://www.cnblogs.com/qrlozte/p/4995462.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!