Well, any help on readfile. I want a quick fix, and my brain is hurting to the point i need to sleep, but i need to get this done.Code:#include <stdio.h> #include <windows.h> #include <pt_ioctl.c> int __cdecl main(void) { char quit; DWORD dwRead; OVERLAPPED osReader = {0}; unsigned char value; unsigned char inBuffer; quit = '\0'; while (quit != 'q') { OpenPortTalk(); HANDLE hComm; hComm = CreateFile("COM1", GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, 0); value = ReadFile(hComm, inBuffer, 12, &dwRead, &osReader); ClosePortTalk(); } return 0; }
Thanks.



LinkBack URL
About LinkBacks


