解决办法:

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

相关文章:

  • 2021-12-10
  • 2021-06-14
  • 2022-12-23
  • 2021-11-08
  • 2021-05-19
  • 2021-09-27
  • 2021-09-24
猜你喜欢
  • 2022-01-03
  • 2021-11-12
  • 2021-12-04
  • 2021-05-18
相关资源
相似解决方案