奇怪:关于BeginUpdateResource
土豆 2000-11-03 03:13:00 在下面的代码中,BeginUpdateResource执行后hUpdateRes为0,即NULL,可用GetLastError()得到的却是“操作完成”,错误代码为0,那就是没错,哪位肯告诉我这是为什么。
hUpdateRes=BeginUpdateResource(szDestFile,FALSE);
if(hUpdateRes==NULL)
{
char lpszBuf[256];
GetLastErrorText(lpszBuf,255);
printf("%s\n",lpszBuf);
}