//常用宏操作
#define FreePtr(ptr) ptr = 0; //定义宏
#undef FreePtr //解除宏定义
#define FreePtr(ptr) m_##ptr = 0; //宏定义字符链接
#define GetFunPtr(FunPtr) \
Hw##FunPtr = (PF_##FunPtr)GetProcAddress(m_hModule,"bAPI4_"#FunPtr""); \
if(0 == Hw##FunPtr) \
{ \
OutputDebugString("Get Hw"#FunPtr" Failed"); \
return false;
} \
typedef int (__stdcall * FunPtr) (); //定义含有调用约定的函数指针
常用宏操作
最新推荐文章于 2024-01-08 09:50:37 发布