I get a windows error message saying the proces has to end with this code:
I figured out the error is when I declare LPTRANSMIT_FILE_BUFFERS buffers and try to fill it. I'm completely loss on how this is done, if I use . instead of-> I get error during compilertion.
overlapped->Offset = 0;
buffers->Head = "File";
buffers->HeadLength = sizeof("File");
MessageBox(NULL, "sdfds", "sdfsd", MB_OK);
HANDLE file = CreateFile("C:/Documents and Settings/Alex/Desktop/Lake.zip", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
if (file == INVALID_HANDLE_VALUE)
ApendText(textbox_status, "Error opening file");
if (TransmitFile(main_socket, file, NULL, NULL, NULL/*overlapped*/, buffers, NULL))
ApendText(textbox_status, "Transmiting file");
ApendText(textbox_status, "Error transmiting file");
If you need more info please ask.