-
-
[旧帖]
[求助]帮忙看看这个异常处理:)
0.00雪花
-
发表于:
2009-2-25 20:01
3180
-
[旧帖] [求助]帮忙看看这个异常处理:)
0.00雪花
if((ptr[position] == 0xFF) && (ptr[position+1] == 0xE4))这也会产生异常??????
int main ()
{
HANDLE hDll;
char *ptr;
int position;
BOOL done_flag = FALSE;
hDll = LoadLibrary ("user32.dll");
ptr = (char *)hDll;
for (position = 0; !done_flag;position++)
{
try
{
if((ptr[position] == 0xFF) && (ptr[position+1] == 0xE4))
{
printf ("%x,%x\n",(int)ptr,position);
}
}
catch (...)
{
printf ("%x,%x\n",(int)ptr,position);
done_flag = TRUE;
}
}
return 0;
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!