Thread: Need a hand accessing the serial ports

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    2

    Need a hand accessing the serial ports

    Hello,
    I've been out of C++ programming for a while and suddenly find myself needing to be able to write some...

    Basically I need to be able to write a character to a serial port and read it from the serial port at the other end of the transmission wire...
    I've looked through all my books from long ago and I can't find anything about opening up a serial port stream.
    If anyone knows what the libraries are that I need to include as well as the functions I need to call (or streams I need to declare), I would be greatly appreciative. (or perhaps I'm approaching the problem from the wrong direction, in which case please smack me one to set me straight)

    Thanks for your help,
    DW13

  2. #2
    Unregistered
    Guest
    You only need to send one character?
    OK...
    I have had pretty good success using the mscomm32.ocx control in Windows... it really depends on what platform your working on as far as what is available and reasonably easy to work with.

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    2
    Yes, I only need to send a single char at a time. This is for a class project (could you guess?) where the real focus is the medium between the two computers.

    As for the OS I'm using, I'll use whatever is easiest, ranging from DOS 6.22 to Windows XP.

    Thanks for your help,
    DW13

  4. #4
    www.entropysink.com
    Join Date
    Feb 2002
    Posts
    603
    this page might be useful.
    Visit entropysink.com - It's what your PC is made for!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. virtual ports
    By royuco77 in forum Networking/Device Communication
    Replies: 5
    Last Post: 07-02-2005, 10:33 AM
  2. How do you send and recieve info from serial ports?
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 06-29-2002, 12:13 PM
  3. Polling serial ports
    By Nevyn in forum Windows Programming
    Replies: 3
    Last Post: 06-12-2002, 03:02 AM
  4. Serial Ports
    By SavesTheDay in forum C Programming
    Replies: 4
    Last Post: 02-04-2002, 03:52 PM
  5. Serial Ports
    By camposv in forum C Programming
    Replies: 2
    Last Post: 01-30-2002, 12:18 PM