Click to See Complete Forum and Search --> : MSComm32.ocx from COM port to COM port


balak yap
February 23rd, 2000, 11:09 PM
Hello;
I am familiar with vc++ and vb, but this is the 1st time i play around with mscomm32.ocx.
I would like to write a program that allow 2 PCs to communicate via com port. But too bad
what i get from net and books are examples for 1 PC and modem. Any one can give me example
program that use MsComm32.ocx to perform communication between 2 PC via com port.
In VC++ or VB.
Thanks

Sooner Or Later, Eveyone Does...

chem1
February 24th, 2000, 12:25 AM
I can give you code where I used Computer Interfacing to connect the PC to an electrical circuit using VB.Perhaps that can help you,
Sorry but not exactly what u asked for....

balak yap
February 24th, 2000, 12:56 AM
Thanks for kindly reply, yes, please send me your code!
BTW, Does your program receive signal from the circuit board?
thanks gain
yejc@hotmail.com

Sooner Or Later, Eveyone Does...

Ravi Kiran
February 24th, 2000, 04:46 AM
Hi,
Yes it is possible. Infact i had written one which will interact with itself and tested ofcourse across two pcs also.

The listener is a VC++ client which open the com port using OpenFile and the sender is a VB program communication using comm control. Unfortunately my present machine is different from that one. and i really have to check if that code still exits.
But it is possible!



RK

balak yap
February 24th, 2000, 05:47 AM
Thanks for you infomation, as actually as i want.
Please find out your old code for both send and receive programs (If possible).
Thanks

Sooner Or Later, Eveyone Does...

DLARLICK
February 28th, 2000, 10:49 AM
If you are using vb6.0 there is a sample application called vbterm. You can demonstrate a connection on one machine by running two instances of this application setup for com1, com2 using a null cable modem looped back from com1, com2. You can send files back and forth and type.