您的位置:首页 > 其它

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

2015-11-25 17:56 661 查看
解决办法:

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: