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. Programming I/O for usb devices

Programming I/O for usb devices

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialworkspace
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.
  • H Offline
    H Offline
    haritadala
    wrote on last edited by
    #1

    Hello all I want to code an application which can read and write using usb interface. As I'm very new to programming using usb interfaces, not able to understand how to do it. I want to use VC++ environment and want to develop a application which can read and write using usb interface just like we do with a serial port. Can anyone help me in this. Any sample code or links to articles abt the same are very much appreciated. Thanks for your help Hari.

    P 1 Reply Last reply
    0
    • H haritadala

      Hello all I want to code an application which can read and write using usb interface. As I'm very new to programming using usb interfaces, not able to understand how to do it. I want to use VC++ environment and want to develop a application which can read and write using usb interface just like we do with a serial port. Can anyone help me in this. Any sample code or links to articles abt the same are very much appreciated. Thanks for your help Hari.

      P Offline
      P Offline
      Peter Molnar
      wrote on last edited by
      #2

      USB devices have a virtual serial port, their device driver is supposed to emulate a "normal" serial port. Therefor look at PlatformSDK/Device IO, and functions like SetupComm, ReadFile, WriteFile, or take a look at this library: http://www.codeproject.com/system/serial.asp[^] Peter Molnar

      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