Results 1 to 2 of 2

Thread: USB device detection problem

  1. #1
    Join Date
    Jan 2006
    Posts
    162
    Thanks
    9
    Qt products
    Qt3
    Platforms
    Windows

    Default USB device detection problem

    He everybody,

    I have an application that uses an usb device. Sometimes this device is not recognized at startup so my application does not work well and I am oblige to deconnect and reconnect it manually.

    My application can detect whether or not the device has been recognized so I wonder if it is possible to send a message to the system (I am working with Windows XP and 2000) to force it to scan all usb devices connected.

    I've just seen a message called DBT_CONFIGCHANGED that could solve my problem but I am not sure.

    Does anyone have tryed such a thing ?

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: USB device detection problem

    You can use any WinAPI calls you want in your application, so you might use SendMessage() or PostMessage() (or whatever other call appropriate) to do the job.

Similar Threads

  1. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  2. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  3. how to export images of Qt/Embedded on Device
    By mahe2310 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 23rd March 2006, 12:05
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.