关于'GetModuleHandleEx': identifier not found
来源:互联网 发布:知无涯者 百度云 编辑:程序博客网 时间:2024/05/21 06:35
关于'GetModuleHandleEx': identifier not found的问题 收藏
引入<windows.h>后仍然提示'GetModuleHandleEx': identifier not found
查看了一下这个函数是在<winbase.h>中定义的:
#if !defined(RC_INVOKED)
#if _WIN32_WINNT > 0x0500 || defined(WINBASE_DECLARE_GET_MODULE_HANDLE_EX) || ISOLATION_AWARE_ENABLED
...................................
#ifdef UNICODE
#define GetModuleHandleEx GetModuleHandleExW
#else
#define GetModuleHandleEx GetModuleHandleExA
#endif // !UNICODE
#endif
#endif
所以需要在程序前面加一行#define _WIN32_WINNT 0x0501 (应该是大于0x0500即可)
另外发现#include <stdafx>之后就找不到GetModuleHandleEx的定义了,有空再认真探究一下,
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/PandorasBox/archive/2010/01/03/5124225.aspx
- 关于'GetModuleHandleEx': identifier not found
- 关于'GetModuleHandleEx': identifier not found的问题
- identifier not found问题解决
- TryEnterCriticalSection: identifier not found
- C++ - Identifier not found
- InitializeCriticalSectionAndSpinCount identifier not found
- VS2010 -- 'back_inserter': identifier not found
- error C3861: 'cvCreateHidHaarClassifierCascade': identifier not found
- vs2005出现错误:'AfxLoadLibrary': identifier not found
- VS2010常见问题: 'back_inserter': identifier not found
- error C3861: 'TryEnterCriticalSection': identifier not found
- error C3861: 'round': identifier not found
- error C3861: 'round': identifier not found
- WTL error C3861: 'DDX_Control': identifier not found
- error C3861: identifier not found | 找不到标识符
- “error C3861: 'random': identifier not found”解决办法
- error C3861: 'AtlLoadSystemLibraryUsingFullPath': identifier not found
- error C3861: ‘back_inserter': identifier not found
- 搜索引擎早期重要论文推荐系列【3】In-memory URL Compression
- linux命令
- Oracle数据操作和控制语言详解
- Could not obtain connection to any of these urls:
- mssql 2000数据库时间长了,日志文件就会增大,清理日志
- 关于'GetModuleHandleEx': identifier not found
- [整理]集成SSH后,DAO工具类
- Struts2,spring&JPA(Hibernate)的集成
- Linux网络协议栈之网络设备管理
- urlrewritingnet 重写,配合aspnetpager
- How To : APC - Seeing Performance Issue While Saving Item But Update Actually Saves
- Struts 2 + Spring 2 + JPA + AJAX
- 数据结构之抽象层次
- 创建新的操作算子和效用算子