Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read a sector of a disk

Status
Not open for further replies.

cami58

Programmer
Feb 8, 2002
16
MA
How could I read or write a specific sector of a hard disk or floppy using Visual C++.I did it with the assembler and I would like to know how it is with C++.
Thanks to you.
 
You'll probably have to embed some assembler code within your C++ code.

I don't think the C++ API supports that low of a level -- i.e. specific sectors of a disc. Here's an example of embedding, although it's for a different purpose:
I hope this helps. :cool:
 
cami58, how did you do it under Windows? Let me know, plz. I was allowed to access physical sectors only under pure DOS, not under Windows.
 
To Mingis:
I did that on pure DOS too.I've never tried it under windows.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top