Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Tape drive access with Createfile

Posted on 2004-08-06
4
Medium Priority
?
397 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

688 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