All COM port detection in VC++ application

This is a discussion on All COM port detection in VC++ application within the Windows Programming forums, part of the Platform Specific Boards category; Hello, I am new to Visual C programming and will need help pls. There is an application developed for windows ...

  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    21

    All COM port detection in VC++ application

    Hello,

    I am new to Visual C programming and will need help pls. There is an application developed for windows which read data through serial port (COM1) and saves it in the computer. Presently, i need to extend it for the other COM ports, specifically for USB ports. How can I do so.

    Any help will be gratefully accepted.

    Thanks,
    Emma Good

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Are you talking about actual USB ports, or just serial port adapters plugged into USB?

    Perhaps
    How to enumerate hardware devices by using SetupDi calls
    Enumerating All Device Drivers in the System
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    May 2012
    Posts
    21
    Quote Originally Posted by Salem View Post
    Are you talking about actual USB ports, or just serial port adapters plugged into USB?

    Perhaps
    How to enumerate hardware devices by using SetupDi calls
    Enumerating All Device Drivers in the System
    Thanks for the reply. There is a device which reads data from sensors and passes them to a computer for storage etc. The device interfaces to the computer through a serial port. The windows application is written in VC++ and is configured for COM1. I wanted to know how to extend the windows application for scanning all the COM ports of the computer.


    As far as physical interfacing is concerned, I plan to use a serial to USB converter with the device and then a USB cable to interface it with the computer.

    Any suggestions will be gratefully accepted.

    Thanks,

    Emma Good

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 05-18-2012, 04:20 AM
  2. Creating serial port application
    By tejendra in forum C Programming
    Replies: 15
    Last Post: 03-09-2011, 02:36 AM
  3. Can I bind a UDP socket to a port, but send to any other port?
    By trillianjedi in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-25-2009, 03:27 PM
  4. serial port communication from two Application
    By lsme in forum Networking/Device Communication
    Replies: 5
    Last Post: 12-12-2005, 10:32 PM
  5. Des. Port & Src. Port Verification Method!
    By althagafi in forum C Programming
    Replies: 3
    Last Post: 08-06-2004, 10:24 AM

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