CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2007
    Posts
    76

    Post serial port reading

    Hello frnds.!
    please help in coding....

    i successfully reconfigured serial port thru vc++ software.....

    now i want to read from serial port from another PC........

    Both the PC serial port is configured at COM1".......

    so,please tell me the code how to read from serial port.....


    thanks in advance

  2. #2
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: serial port reading

    Please search forums first using the words you already have used in your question. You will find plenty of leads. In fact, this is the first thing you should've done even before creating a new thread.

  3. #3
    Join Date
    Jul 2005
    Location
    E: 120°.6, N: 31°.3′
    Posts
    795

    Re: serial port reading

    1.) Initiate Com port first(e.g. some setting ,COM1,Baud Rate ...)
    2.) Add code in OnComm Event.
    3.) Send String to comport and will get feedback from com port.

    That's all.
    Little by little one goes far
    Keep moving.......!
    Nothing is impossible !

  4. #4
    Join Date
    Aug 2001
    Posts
    507

    Re: serial port reading

    Here .. we at codeguru just love this site as reference for Serial communications.

    Our Beloved Site

    Enjoy
    If you found my reply to be useful, please dont hesitate to rate it.


    DO NOT kick the Axe if it doesnt fall on your foot.

    Salman

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