bool IsExistFile(LPCTSTR pszFileName) //判断文件是否存在 { WIN32_FIND_DATA FindFileData; HANDLE hFind; hFind = ::FindFirstFile(pszFileName,&FindFileData); if(hFind == INVALID_HANDLE_VALUE) return false; else { FindClose(hFind); return true; } return false; }
bool DataInteraction(int nSendLen, int nHolpRecv, int& nRecvLen, int nDevID) //写入文件
{
BYTE RecvBuf[4096] = {' '};
BYTE buf[4096] = {'