Thread: All COM port detection in VC++ application

  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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

  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, 03: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, 04:27 PM
  4. serial port communication from two Application
    By lsme in forum Networking/Device Communication
    Replies: 5
    Last Post: 12-12-2005, 11: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