error MIDL2025 : syntax error : expecting a type specification near "HRESULT"解决办法
2011-11-24 18:13
567 查看
在vc6.0用ATL建立一个COM组件,然后在接口定义中加入方法,会遇到编译错误:
(1)error MIDL2025 : syntax error : expecting a type specification near "HRESULT"
(2)error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation
解决办法:
(1)在加入的新接口的.odl文件头加上import "ocidl.idl",
(2)重新编译,错误消失.
(1)error MIDL2025 : syntax error : expecting a type specification near "HRESULT"
(2)error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation
解决办法:
(1)在加入的新接口的.odl文件头加上import "ocidl.idl",
(2)重新编译,错误消失.
相关文章推荐
- error MIDL2025 : syntax error : expecting a type specification near "HRESULT"解决办法
- error MIDL2025 : syntax error : expecting ] or , near "annotation"
- 出现错误 Element type "LinearLayout" must be followed by either attribute specification,">"or"/>"的解决办法
- error MIDL2025 : syntax error : expecting ] or , near "annotation"
- 关于[[NSBundle mainBundle] pathForResource:@"name" ofType:@"type"]找不到指定文件的解决办法
- iOS开发 - "Cast from pointer to smaller type 'int' loses information” 解决办法
- nginx升级到 0.8.53 之后,使用老的配置出现duplicate MIME type "text/html"问题的解决办法
- 使用input type=file标签进行文件上传时,在安卓手机中的微信浏览器中不能调起相机,但是在苹果手机中的微信浏览器中可以调用相机。解决办法很简单, <input type="file" nam
- ELF binary type "0" not known.解决办法
- 【玩转Ubuntu】08. Linux报错:Syntax error: "(" unexpected解决办法
- 关于[[NSBundle mainBundle] pathForResource:@"name" ofType:@"type"]找不到指定文件的解决办法
- iOS开发 - "Cast from pointer to smaller type 'int' loses information” 解决办法
- The content of element type "web-app" must match……等 问题之解决办法
- syntax error: unexpected word (expecting ")")错误解决办法
- Web开发敏捷之道-应用Rails进行敏捷Web开发-第三版 92页 错误提示 syntax error, unexpected ')' ..._cart" , :id => product } do ).to_s) 解决办法
- 关于[[NSBundle mainBundle] pathForResource:@"name" ofType:@"type"]找不到指定文件的解决办法
- POST提交时总是报错: {"errcode":40017,"errmsg":"invalid button type"} 解决办法
- no rule to process file "xxxxxxxxx" of type XXXXXX.h for architecture i386解决办法
- iOS开发 - "Cast from pointer to smaller type 'int' loses information” 解决办法
- 当提交带文件的的form(enctype="multipart/form-data")时,不能获得参数的解决办法