Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. USB device message detector

USB device message detector

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpdesigntutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Beveloper
    wrote on last edited by
    #1

    I need a simple Windows application to detect messages from a USB drive. When the application detects that a USB device has been inserted, I need to launch another application. I have found an example which works in .NET environments but I can't guarantee that all my users will be working on .NET-supported platforms. Does anyone know of a simple C++ application containing a basic message loop that I can adapt? I don't care about the UI. Alternately, is there an easy way to convert .NET code so that it will work on a non-.NET platform? I'm working in Visual C++ 2005 Express. Thanks!

    K 1 Reply Last reply
    0
    • B Beveloper

      I need a simple Windows application to detect messages from a USB drive. When the application detects that a USB device has been inserted, I need to launch another application. I have found an example which works in .NET environments but I can't guarantee that all my users will be working on .NET-supported platforms. Does anyone know of a simple C++ application containing a basic message loop that I can adapt? I don't care about the UI. Alternately, is there an easy way to convert .NET code so that it will work on a non-.NET platform? I'm working in Visual C++ 2005 Express. Thanks!

      K Offline
      K Offline
      ksrameshkanth
      wrote on last edited by
      #2

      Hi, I think you can handle ON_WM_DEVICECHANGE(). Also refer the following link http://www.codeproject.com/system/HwDetect.asp Regards, Rameshkanth

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups