Solved

Tape drive access with Createfile

Posted on 2004-08-06
4
377 Views
Last Modified: 2009-07-29
I can gain access to a tape drive with createfile - then can load, unload, position tape, rewind - all work fine - everything except Read. I have tried both BackUpRead and ReadFile with no success - also tried the standard example by Ethan from this forum - same problem.
( I can read the tape via ASPI- but its way too slow )

Does anyone have ideas ?

Thanks

ps OS is Win 2K SP5, language is VB6
0
Comment
Question by:aJeff
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
DarkoLord earned 500 total points
Comment Utility
Do you get any error(s) when trying to read using ReadFile?

Make sure you specify the last parameter as ByVal 0& if you didn't use FILE_FLAG_OVERLAPPED in CreateFile...

Post your code...

Darko
0
 

Author Comment

by:aJeff
Comment Utility
Hi Darko
0
 

Author Comment

by:aJeff
Comment Utility
Hi Darko

Thanks for your reply.  The byVal did it !
Now I can read from my Exabyte ( TAPE0 )
I have been staring at this thing for 2 days ....

Case closed - the points are yours.
Thanks again

aJeff
0
 
LVL 22

Expert Comment

by:DarkoLord
Comment Utility
You're welcome!

Darko
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now