Thread: communication with i/o port

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    5

    communication with i/o port

    Hi,
    Please inform me, how i can communicate to i/o port using functions provided by window's.

    Thanks

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    You can get a handle to an I/O port with the CreateFile() API routine. Look it up in the help or at MSDN, particulaly the section dealing with "Communication Resources".

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

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Here is a link to one solution from MSDN.

    http://msdn.microsoft.com/library/d...msdn_serial.asp

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 01:58 PM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. Communication over parallel port
    By Istari in forum C Programming
    Replies: 5
    Last Post: 08-25-2004, 03:22 AM
  4. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 05:14 PM
  5. Need help or info about serial port communication
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 01-08-2002, 01:48 PM