#include <windows.h>
#include <stdio.h>int main()
{
int (*lpAdder)(HWND,LPCTSTR,LPCTSTR,UINT);
lpAdder = MessageBoxA;
printf("%08lx\n",lpAdder);
return 0;
}
win32 api ptr.c(7) : error C2152: '=' : pointers to functions with different attributes
Error executing cl.exe.
我取max函数的地址可以
为什么MessageBoxA就不行了
提示出现上述编译错误
麻烦替我解答下
先谢谢了