View Single Post
  #64   Spotlight this post!  
Unread 12-06-2002, 21:54
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
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.
__________________
AIM --> Woloi
Email --> ian@woloschin.com