E
eire
Unregistered / Unconfirmed
GUEST, unregistred user!
请类用DELPHI实现。谢谢。
UINT __stdcall GetData(LPVOID pParam)
{
CWnd *wnd;
wnd = ::AfxGetApp()->m_pMainWnd;
int fsid = *(int *)pParam;
::SendMessage(wnd->GetSafeHwnd(),USER_MESSAGE_STEP,ID_PROGRESS_REVDATA_START,(LPARAM)MESSAGE_REVDATA_START);
HS_data_transmit_recv(wnd,fsid,0,(char *)lpvRevBuffFile,&g_nRevBuffFileLen);
if(g_nRevBuffFileLen<LEN_DATABASE[fsid])
{
::SendMessage(wnd->GetSafeHwnd(),USER_MESSAGE_STATUS,ID_MESSAGE_NORECORDRETURN,(LPARAM)MESSAGE_REVDATA_NORECORD);
return 0;
}
::SendMessage(wnd->GetSafeHwnd(),USER_MESSAGE_STEP,ID_PROGRESS_DATASAVE_START,(LPARAM)MESSAGE_SAVEDATA_START);
SaveResultToFile(fsid);
::SendMessage(wnd->GetSafeHwnd(),USER_MESSAGE_STEP,ID_PROGRESS_REVDATA_END,(LPARAM)MESSAGE_SAVEDATA_END);
return 0;
}
UINT __stdcall GetData(LPVOID pParam)
{
CWnd *wnd;
wnd = ::AfxGetApp()->m_pMainWnd;
int fsid = *(int *)pParam;
::SendMessage(wnd->GetSafeHwnd(),USER_MESSAGE_STEP,ID_PROGRESS_REVDATA_START,(LPARAM)MESSAGE_REVDATA_START);
HS_data_transmit_recv(wnd,fsid,0,(char *)lpvRevBuffFile,&g_nRevBuffFileLen);
if(g_nRevBuffFileLen<LEN_DATABASE[fsid])
{
::SendMessage(wnd->GetSafeHwnd(),USER_MESSAGE_STATUS,ID_MESSAGE_NORECORDRETURN,(LPARAM)MESSAGE_REVDATA_NORECORD);
return 0;
}
::SendMessage(wnd->GetSafeHwnd(),USER_MESSAGE_STEP,ID_PROGRESS_DATASAVE_START,(LPARAM)MESSAGE_SAVEDATA_START);
SaveResultToFile(fsid);
::SendMessage(wnd->GetSafeHwnd(),USER_MESSAGE_STEP,ID_PROGRESS_REVDATA_END,(LPARAM)MESSAGE_SAVEDATA_END);
return 0;
}