How to IO with C++ and serial port?

Discussion in 'Computing and Networks' started by PRS, Aug 31, 2010.

  1. PRS

    Thread Starter Well-Known Member

    Aug 24, 2008
    989
    35
    I recently bought a USB to serial port adapter for experimenting with. Trouble is, I don't know how to read and write to it. There were no intructions. I installed the drivers with a cd but it only told me it was COM4. Is that enough information for me to use it with C++? What would the command be to read or write? I'd sure appreciate any help! ;)
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    With the driver the USB dongle should be seen as any "real" serial port from windows. So just use standard serial functions. I am sure you can find out how via Google
     
  3. cheezewizz

    Active Member

    Apr 16, 2009
    82
    10
  4. PRS

    Thread Starter Well-Known Member

    Aug 24, 2008
    989
    35
    Thanks! Just what I needed to know!
     
Loading...