|
temp1=SetTimer(hWnd,ID_TIMER_1,10000,NULL);
if(temp1==0)
{
TCHAR szBuf[128];
LPVOID lpMsgBuf;
DWORD dw = GetLastError();
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
dw,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR) &lpMsgBuf,
0, NULL
);
wsprintf(szBuf, _T("%s 函数出错信息 (出错码=%d): %s"), _T("出错"), dw, lpMsgBuf);
弹出的对话框,出错码=87:参数错误
怎么解决??
LocalFree(lpMsgBuf);
MessageBox(NULL,szBuf, _T("ERROR"), MB_OK);
}else
MessageBox(NULL,_T("函数正常.."), _T("成功!"), MB_OK);
FtpThread();
ReadTIFile();
PostMessage(hWnd, WM_PAINT, 0, 0);
break; |
|