Thread: COM-ports

  1. #1


    hey everyone

    im writing a program that sends information from one PC to another, using COM1, with ReadFile() and WriteFile()

    but how do I know which port is COM1??
    I thought of connecting a cable to a port and maybe theres a function that can check if something is connected to COM1, it will answer TRUE or FALSE or something...

    can someone help??

  2. #2
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002

    Thumbs up

    Hi Anne,
    give me your Email Id so that I can send over the code to you. I just have to refer the Memory location and would do it as soon as I get home.

  3. #3

    my email is

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program that monitors what programs are on what ports!
    By mabufo in forum C++ Programming
    Replies: 2
    Last Post: 03-11-2006, 12:42 PM
  2. virtual ports
    By royuco77 in forum Networking/Device Communication
    Replies: 5
    Last Post: 07-02-2005, 10:33 AM
  3. Control of ports
    By Blip in forum Networking/Device Communication
    Replies: 1
    Last Post: 05-02-2005, 09:04 AM
  4. Controlling ports
    By lockpatrick in forum Linux Programming
    Replies: 2
    Last Post: 06-09-2002, 11:58 AM
  5. Accessing Ports
    By Thantos in forum C Programming
    Replies: 6
    Last Post: 09-13-2001, 06:01 AM