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. How to read the floppy sectors when the 0 sector is bad

How to read the floppy sectors when the 0 sector is bad

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
4 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
    bghuang
    wrote on last edited by
    #1

    I want to recovery the floppy disk,but cannot read the sectors when the 0 sector is bad. The tool HD copy and DiskEdit can do it. How to do it? My program is running in MFC mode but not console mode

    B 1 Reply Last reply
    0
    • B bghuang

      I want to recovery the floppy disk,but cannot read the sectors when the 0 sector is bad. The tool HD copy and DiskEdit can do it. How to do it? My program is running in MFC mode but not console mode

      B Offline
      B Offline
      Bob Stanneveld
      wrote on last edited by
      #2

      This[^] article should get you started.. Blog[^]

      B 1 Reply Last reply
      0
      • B Bob Stanneveld

        This[^] article should get you started.. Blog[^]

        B Offline
        B Offline
        bghuang
        wrote on last edited by
        #3

        The CFloppyDisk use the folling sentence to read the sector,so it cannot pass the error.:(:( CreateFile("\\\\.\\A:", GENERIC_READ|GENERIC_WRITE,0, NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);

        B 1 Reply Last reply
        0
        • B bghuang

          The CFloppyDisk use the folling sentence to read the sector,so it cannot pass the error.:(:( CreateFile("\\\\.\\A:", GENERIC_READ|GENERIC_WRITE,0, NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);

          B Offline
          B Offline
          Bob Stanneveld
          wrote on last edited by
          #4

          Did you try it? If you did and you get errors, maybe you should try and look for documentation on the floppy disk device drivers and call functions from there... Blog[^]

          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