Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Tape drive access with Createfile

Posted on 2004-08-06
4
Medium Priority
?
399 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 2000 total points
ID: 11740090
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
ID: 11743072
Hi Darko
0
 

Author Comment

by:aJeff
ID: 11743095
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
ID: 11743101
You're welcome!

Darko
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

971 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