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

解决办法:

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

时间: 2024-10-12 19:26:05

error MIDL2311 : statements outside library block are illegal in mktyplib compatability mode的相关文章

error MIDL2311: 解决

错误 1 error MIDL2311: statements outside library block are illegal in mktyplib compatability mode : 解决方法:

error: no curses/termcap library found

[[email protected] mysql-5.1.73]# ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install..

zabbix3.x安装出现“configure: error: Not found mysqlclient library”的解决办法

如题所示,在CentOS6.x的系统中安装zabbix3.x,使用了以下的编译命令: ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 在编译时,可能会出现题目中所示的错误,可以通过安装mysql-devel这个库解决: [[email protected] za

ERROR: could not load library "D:/Program Files/PostgreSQL/9.3/lib/postgis-2.1.dll": Invalid access to memory location.

ERROR:  could not load library "D:/Program Files/PostgreSQL/9.3/lib/postgis-2.1.dll": Invalid access to memory location. 这个错误,参照:http://trac.osgeo.org/postgis/ticket/2476 原因可能是这个表跟postgis有关系,里面一个字段是使用函数产生的: 这里提示说,重启下服务,就奇迹般的没有这个问题了:.... ERROR: c

Error loading RS jni library: java.lang.UnsatisfiedLinkError 解决方案

我们可能会用到模糊效果,就会想到renderscript.jar , 但是模糊效果是3.0以后的效果,在有的4.x以上的手机上也会造成错误,Error loading RS jni library: java.lang.UnsatisfiedLinkError,会报出这样的错误,明显是手机上没有.so包. 错误图示 明显可以得出,没有.librsjni.so的包存在,那么要怎么处理呢,其实在sdk中已经提供了相应的.so库.我们只要找到即可,然后放入libs下即可 这样在任何机型上都不会报错了,

checking for termcap functions library... configure: error: No curses/termcap library found

源码编译mysql-5.1.17 软件,./configure的时候报错: checking for tgetent in -lncursesw... no checking for tgetent in -lncurses... no checking for tgetent in -lcurses... no checking for tgetent in -ltermcap... no checking for tgetent in -ltinfo... no checking for t

SVN: &#39;0x0040010b: Obtain Project Name&#39; operation finished with error: Selected SVN connector library is not available or cannot be loaded.

Eclipse从svn上迁出项目的时候报以下的错误: SVN: '0x0040010b: Obtain Project Name' operation finished with error: Selected SVN connector library is not available or cannot be loaded.If you selected native JavaHL connector, please check if binaries are available or in

error: No curses/termcap library found的解决办法

mysql版本:5.1.30 已经不记得这次是第几次安装mysql了,遇到这个问题倒是第一次. 之前在tar,./configure,make,make install 经典四步时,从来没有想过其中的过程,只觉得像例行公事一样,做就是了. 不幸的是,这次在./configure后,make时出现以下错误: make: *** No targets specified and no makefile found. stop. 本来这次还是想向别人请教的,后来转念一想,前段时间还告诉自己:遇到问题,

Grade 编译 Android 解决 Error:more than one library with package name

Grade 编译 Android 解决 Error:more than one library with package name Error: more than one library with package name 'com.app.XX' You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be en