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. Reading binary data off a CD

Reading binary data off a CD

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
2 Posts 2 Posters 1 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.
  • D Offline
    D Offline
    Dev578
    wrote on last edited by
    #1

    To my understanding, a CD has 0's and 1's (binary) written on it, and a laser reads the binary. Then the computer translates it. Please correct me if I am wrong. I am using MFC, and what I am trying to do is get all the binary data off of a CD, and put it to a char. Is this possible? Any help at all is appreciated. -Dev578

    A 1 Reply Last reply
    0
    • D Dev578

      To my understanding, a CD has 0's and 1's (binary) written on it, and a laser reads the binary. Then the computer translates it. Please correct me if I am wrong. I am using MFC, and what I am trying to do is get all the binary data off of a CD, and put it to a char. Is this possible? Any help at all is appreciated. -Dev578

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      a CD has nothing "written" on it! there are pits and pats (or whatever they are called... dunno). a change between pit and pat is a 1, if it doesnt change then it is 0. to read the binary sectors from a CD you will need IOCTLs or even better SCSI. IOCTL_CDROM_RAW_READ is the IOCTL, but i dont know if you will find it in MSDN, my doc is part of the DDK. if you want to use SCSI then have a look at CDex src. Don't try it, just do it! ;-)

      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