You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, January 20th 2005, 11:10am

Problem in raw reading hard disk sector

Hi All
I am working on QT for Mac.
I have problem in reading hard disk sector.I am sending my program Which i am using to read the hard disk sector. I am reading the hard disk sector in a buffer and then write this buffer in a file.
i am also sending two Doc files which i created. one of which contents is readed by my program which i seen through HexEdit and other one is actual written on that sector on the hard disk. i have seen that particular hard disk sector by Winhex on windows and i also conformed this by using DiskEditor.

But my program is not reading what is actually written on that particular sector.
Plz help me giving code example how i can sought out this problem.


Thanks and regards
darpan has attached the following file:
  • problem.zip (105.79 kB - 33 times downloaded - latest: Feb 22nd 2013, 8:31am)

e8johan

Professional

  • "e8johan" is male

Posts: 1,195

Location: Sweden

  • Send private message

2

Thursday, January 20th 2005, 1:05pm

RE: Problem in raw reading hard disk sector

Reading harddisk sectors really isn't very platform independent. Since Qt's main purpose is to be a cross platform toolkit, it isn't really well suited for such tasks. Instead, use the open/seek/read calls available from the BSD core of OSX, and then present the information using Qt.