Hi,
I would like to create 5 functions :
- SERIALPORT_OPEN (I use hPort = CreateFile);
- SERIALPORT_CLOSE (I use CloseHandle(hPort));
- SERIALPORT_READDATA(I use ReadFile(hPort));
- SERIALPORT_WRITEDATA(I use WriteFile(hPort));
But when I compile the 5 functions, I have a problem.
The compile say that the hport is undeclared.
How can I do to use my functions ?
I would like to create 5 functions :
- SERIALPORT_OPEN (I use hPort = CreateFile);
- SERIALPORT_CLOSE (I use CloseHandle(hPort));
- SERIALPORT_READDATA(I use ReadFile(hPort));
- SERIALPORT_WRITEDATA(I use WriteFile(hPort));
But when I compile the 5 functions, I have a problem.
The compile say that the hport is undeclared.
How can I do to use my functions ?