CString strTempFilePath = “你要保存的文件名";CFile fileNow(strTempFilePath, CFile::modeWrite|CFile::modeCreate|CFile::typeBinary);while(){ fileNow.Write((BYTE *)&buffer, sizeof(DownLoadDB));}fileNow.Flush();fileNow.Close();