CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    MSComm32.ocx from COM port to COM port

    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...

  2. #2
    Join Date
    Aug 1999
    Location
    Pakistan
    Posts
    366

    Re: MSComm32.ocx from COM port to COM port

    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....


  3. #3
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    Re: MSComm32.ocx from COM port to COM port

    Thanks for kindly reply, yes, please send me your code!
    BTW, Does your program receive signal from the circuit board?
    thanks gain
    [email protected]

    Sooner Or Later, Eveyone Does...

  4. #4
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: MSComm32.ocx from COM port to COM port

    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

  5. #5
    Join Date
    Apr 1999
    Location
    Malaysia
    Posts
    224

    Re: MSComm32.ocx from COM port to COM port

    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...

  6. #6
    Join Date
    Jan 2000
    Location
    Pennsylvania, United States
    Posts
    106

    Re: MSComm32.ocx from COM port to COM port


    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.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured