chris2001a
Programmer
Hi,
I've been trying, for a few days now, to use the MSCOMM OLE control to use the serial port on my PC. I'm trying to get&send data from one port to another one.
I have 2 Edit Boxes and 2 MSCOMM (one for each port).
Both COM have the same settings. Now to test it, I use the hyperterminal and turn a com port off.
What I don't understand is how I can receive the data and print them in the edit box(it seems it only sends them...). Also I notice that the data in the edit box are sent a bit late. I mean I have to press 2 keys to see the first one appearing in the hyperterminal.
I'd appreciate if some could send me docs, info or even code to do such thing in Visual C++.
Thanks,
Chris.
I've been trying, for a few days now, to use the MSCOMM OLE control to use the serial port on my PC. I'm trying to get&send data from one port to another one.
I have 2 Edit Boxes and 2 MSCOMM (one for each port).
Both COM have the same settings. Now to test it, I use the hyperterminal and turn a com port off.
What I don't understand is how I can receive the data and print them in the edit box(it seems it only sends them...). Also I notice that the data in the edit box are sent a bit late. I mean I have to press 2 keys to see the first one appearing in the hyperterminal.
I'd appreciate if some could send me docs, info or even code to do such thing in Visual C++.
Thanks,
Chris.