ok, i have my serial communications program working, or at least i think so. there's one part i'm not sure of, which is as follows...
Code:
if(!ReadFile(hSerial, szBuff, 26, &dwBytesRead, NULL)) {
//error reading serial port. Process appropriately.
cout << "Uh oh" << endl;
}
the little 'uh oh' was just a phrase i spat out to test where the program was failing. it seems to be able to get up to this statement, and then it freezes. i'm assuming this is because i don't have the robot hooked up to it, but i just want to be sure. i'm going to be testing it tomorrow, i think, so i can be sure about whether or not it works, but i just want to make sure that this line of code (or lines) will work correctly, which it should. if this code works, i think i have the basic program all done, and all i need to do is 'customize' the dashboard, so i can change the numbers to reflect this year's robot program. but i want to make sure the actual basic program works first.