WriteFile returning error 1784

前端 未结 2 972
逝去的感伤
逝去的感伤 2021-01-22 18:34

I am creating a program to populate a disk with a dummy file system.

Currently, I am writing files of variable sizes using WriteFile.

               


        
2条回答
  •  Happy的楠姐
    2021-01-22 18:58

    I got a Error = 1784 and it was because I opened the file without specifying the size of records and then did block reads on the file.

    Reset( FileHandle );
    

    Should be

    Reset( FileHandle, 1 );
    

提交回复
热议问题