Hello
I want to conect two computer by their serial port,
enter data in one and see them in another.
I should use C or C++ programing.
can you tell me how should I do?
I don't know C & C++ enough ...
thank you for your help.
Mahshid
Hello
I want to conect two computer by their serial port,
enter data in one and see them in another.
I should use C or C++ programing.
can you tell me how should I do?
I don't know C & C++ enough ...
thank you for your help.
Mahshid
You should be able to do this using fopen(). The first param should be something like "COM1" or whatever port you decide to use, and of course the second param should be the type of access you want (i.e. read, write). If you can't get this to work it will depend on your os.
Last edited by master5001; 06-30-2003 at 04:53 AM.
Here is a link to MSDN that shows a good design sample from Microsoft.
http://msdn.microsoft.com/library/d...msdn_serial.asp
Kuphryn
Ya.....fopen() is right way to open port as file and then read and write through that handle.
One more important thing : you will have to use NULL MODEM CABLE to connect your two computers through COM port.
Chintan R Naik