【BCB】ocidl.h E2337 Only one of a set of overloaded functions can be ”C“ 报错解决办法
2011-12-12 08:47
597 查看
[C++ Error] ocidl.h(8163): E2337 Only one of a set of overloaded functions can be "C"
E2337解决办法:进入CB的安装目录找到C:\Program Files\Borland\CBuilder5\Include\ocidl.h ,找到报错的那几行,把他注释掉。
原因分析:工程下包含的所有头文件中含有这几行信息,与ocidl.h提供的重复了,编译这个工程的时候,如果你找不着这个信息的其他出处,你就把这个注释掉。
注意事项:当编译新工程时要把这个位置还原。
例如:在ocidl.h里把下面几行,注释掉运行就OK了。
//unsigned long __RPC_USER HDC_UserSize( unsigned long __RPC_FAR *, unsigned long , HDC __RPC_FAR * ); //unsigned char __RPC_FAR * __RPC_USER HDC_UserMarshal( unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, HDC __RPC_FAR * ); //unsigned char __RPC_FAR * __RPC_USER HDC_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, HDC __RPC_FAR * ); //void __RPC_USER HDC_UserFree( unsigned long __RPC_FAR *, HDC __RPC_FAR * );
相关文章推荐
- "SetDestination" can only be called on an active agent that has been placed on a NavMesh. 解决办法
- [Visual Studio 2010]如何解决错误CoClass 'xx' can be used only as one of its applicable interfaces
- The codesign tool requires there only be one - 解决办法
- C++编译错误"a storage class can only be specified for objects and functions"解决方法
- The codesign tool requires there only be one.问题解决办法
- Only one instance of a ScriptManager can be added to the page.
- Variable ‘time_zone’ can’t be set to the value of ‘NULL’解决方法
- The codesign tool requires there only be one - 解决办法
- IAR调试时出现IAR one or more breakpoints could not be set and have been disabled的解决办法
- The method onCreate in type MainActivity can only set one of public / protec
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法
- Unity关于 "Move" can only be called on an active agent that has been placed on a NavMesh.问题的解决办法
- mysql:Variable 'character_set_client' can't be set to the value of 'NULL'解决
- C++编译错误"a storage class can only be specified for objects and functions"解决
- 请求权限调不起来,Can request only one set of permissions at a time
- vs2005下出现“Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive”的解决方法
- The codesign tool requires there only be one - 解决办法
- setProperty must be overridden by all subclasses of SOAPMessage 解决办法
- QT “Timers can only be used with threads started with QThread”的解决办法~
- 错误“a label can only be part of a statement and a declaration is not a statement”解决方法