Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old September 16th, 2003, 09:49 AM
PimVelders PimVelders is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Netherlands
Posts: 12 PimVelders User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to PimVelders Send a message via Yahoo to PimVelders
Question Direct Disk Access: HELP!!!

Does somebody here knows how to directly access a Floppy or H-Disk. For example:

'I want to read out sector 2 of A:'

Can somebody please help me?

Reply With Quote
  #2  
Old September 16th, 2003, 08:29 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,687 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 16 h 39 m 15 sec
Reputation Power: 688
I don't know your answer, I suspect you'll need to use the Windows API.

Reply With Quote
  #3  
Old September 17th, 2003, 12:25 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
Use assembler is the better way!.
A vb+assembler sample:
http://www.a1vbcode.com/app.asp?ID=717

Reply With Quote
  #4  
Old September 17th, 2003, 01:58 AM
PimVelders PimVelders is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Netherlands
Posts: 12 PimVelders User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to PimVelders Send a message via Yahoo to PimVelders
Hey cleverpig,

Ok, I downloaded the 'assembler'. Now what? it''s a nice app but I really don't know what to do with it. Can you help me on this too??

Reply With Quote
  #5  
Old September 17th, 2003, 03:18 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
If U don't kown assebler&vb,u can use shell "C:\WINNt\System32\RUNDLL32.EXE Shell32.DLL,SHFormatDrive" to format floppy disk.

Reply With Quote
  #6  
Old September 17th, 2003, 03:24 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
VB has no native methods to inline assembly code. You'd be better off creating a C++ dll using _asm, or a pure ASM dll using masm32.

Reply With Quote
  #7  
Old September 17th, 2003, 05:50 AM
PimVelders PimVelders is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Netherlands
Posts: 12 PimVelders User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to PimVelders Send a message via Yahoo to PimVelders
Misunderstanding

I think there is a little misunderstanding between us. My actual goal was to directly read an write from a disk. I created a new kind of archiving, and my goal was to create a File System from that. That's why i need Low-Level disk access. For example:

'I want to read out sector 2 and put it into variable A'
or
'I want to write variable A to sector 23'

You know?

I really appreciate your support!

Reply With Quote
  #8  
Old September 18th, 2003, 02:27 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
Yes!I know,But using vb to access low-level disk is too difficult.U would make a dll that use assembler to do it and a vb program with using this dll.

Reply With Quote
  #9  
Old September 18th, 2003, 05:39 AM
PimVelders PimVelders is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Netherlands
Posts: 12 PimVelders User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to PimVelders Send a message via Yahoo to PimVelders
Thanks

OK, now I get it. Can you tell me where I can find a DLL that can do this? If possible, simple to use?

Reply With Quote
  #10  
Old September 18th, 2003, 09:02 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
Hi PimVelders!I take very more time to finded a source code that can access/edit disk sector!
This is the introduce:
Disk Editor 2.0
This is utility to see, edit your computer's harddisk or floppy sector. it can store disk sector to file and also write sectors from file.i included source code in c-language also.

This is the C language code:
http://www.programmersheaven.com/Us...Files/29254.zip

U can make it to dll by VC!

Reply With Quote
  #11  
Old September 18th, 2003, 09:05 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via MSN to cleverpig
Another one:
Disk Sector Reader
http://63.229.91.6/file/asm/80x86/GETSECT.ZIP
how to write bootsector code in assembler
http://63.229.91.6/file/asm/80x86/bootsec.zip

Plz visit http://www.programmersheaven.com/zone5/cat469/index.htm for more...

Reply With Quote
  #12  
Old September 22nd, 2003, 05:40 AM
PimVelders PimVelders is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Netherlands
Posts: 12 PimVelders User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to PimVelders Send a message via Yahoo to PimVelders
Yeah!!

Cool man, you really helped me with this!!!!!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Direct Disk Access: HELP!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |