09-23-2005 07:59 AM
09-23-2005 08:15 AM
You might be closing the COM functions before the actual data has had time to be sent. In which case you should use GetOutQLen () to check that the data has gone before you close the port.
It is possible that the PC platform you are using does not have a COM1 port: on laptops with USB RS232 adaptors they are often numbered COM3 or COM4.
If you check the return codes for the functions you are using (or run the program in Debug mode) you might receive some unexpected information back from the library calls which could point you in the right direction.
JR
09-23-2005 09:29 AM