CFile Sourcefile; Sourcefile.Open(strFilePath, CFile::modeRead); ULONGLONG dwLength = Sourcefile.GetLength(); command_header.Databuffer = new char[(int)dwLength + 1]; UINT nActual = Sourcefile.Read(command_header.Databuffer,dwLength); command_header.Databuffer[nActual] = 0; nRet = SockConnection.Send(command_header.Databuffer, nActual);
nRet = SockConnection.Receive(iBuf, 100); while(iBuf[nRet] != '\0') { AfxMessageBox(L"Send remaining data"); hCommand_header.command = FILE_SIZE; nRet = SockConnection.Send((char*)&hCommand_header.command, sizeof(hCommand_header.command));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)