Using a serial port, clueless

This is a discussion on Using a serial port, clueless within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I need to access a serial port for use with an IR tower, and, well, I have no clue ...

  1. #1
    arctidog
    Guest

    Using a serial port, clueless

    Hi, I need to access a serial port for use with an IR tower, and, well, I have no clue where to start, if anyone can help me it would be greatly appreciated.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    You can get a handle to com ports using the CreateFile() API function. Look in the help, in particular at the section that deals with "Communication Resources".

    Once you have a handle, you can use the handle based I/O routines.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    arctidog
    Guest

    Thanks

    Thanks! So far this seems to help, I'll keep working at it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. serial port to poll on request
    By infineonintern in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2009, 07:52 AM
  2. Can't Read From Serial Port
    By HalNineThousand in forum Linux Programming
    Replies: 14
    Last Post: 03-20-2008, 06:56 PM
  3. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 06:49 PM
  4. Reading and writing to a serial port
    By SwarfEye in forum C Programming
    Replies: 2
    Last Post: 08-18-2006, 01:28 AM
  5. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 04:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21