hey all,
Sorry to be a baby about this (just need some help getting off the ground) but I was wondering if anyone could give me an example of a ReadFile from the keypad on MX503's. I'd really appreciate it.
heres my CreateFile if that helps:
comPortOpen = CreateFile("COM3", GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
thanks,
- legit
Reading from COM3 c++
-
- Matrix Orbital
- Posts: 745
- Joined: Thu Dec 13, 2001 4:00 pm
- Location: Earth.... I think..
- Contact:
In the code i posted in this topic paste the following code just before CloseHandle line.
It would print out all Characters recieved.
Code: Select all
while (true)
{
ReadFile(hCom,buffer,1,&br,NULL);
if (br != 0)
printf("%.2x\n",buffer[0]);
}