常用宏操作

来源:互联网 发布:万能票据软件 编辑:程序博客网 时间:2024/05/16 10:11
//常用宏操作#define FreePtr(ptr)     ptr = 0;//定义宏#undef  FreePtr//解除宏定义#defineFreePtr(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)();//定义含有调用约定的函数指针

 
原创粉丝点击