Solved

Tape drive access with Createfile

Posted on 2004-08-06
4
380 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
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adding to a VBA? 6 70
vbModal 12 52
how to Classify of email (pdf attachments) 7 36
Sub or Function is not defined 6 30
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

777 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