Re: More Info about my problem
- Posted by Robert Craig <rds at ATTCANADA.NET> Mar 07, 1999
- 459 views
Bernie Ryan writes: > I get the following results: > > addr = 11550 Number of bytes read = 1 > > 11550 t 11551 e > --------------------------------------------------------------------- > Notice that the number of bytes returned by blockread is ONLY 1. I ran your testme.ex in a Win95 DOS window and it ran perfectly. When I restarted in plain DOS mode, it gave: "Could not open testme.ex" number of bytes read = -1 and also "t" and "e" as you saw. Note that the bytes read was -1 (minus one) *not* 1. That means it failed to open the file. I don't know why the program failed under plain DOS, but Jacques' code seems to use a different DOS interrupt depending on the version of DOS that it thinks it is running on. I'm pretty sure that people have run Jacques code on plain DOS before without a problem, e.g. games, sound blaster etc. I guess you'll have to consult with Jacques, or someone who knows about DOS interrupts. Maybe he's trying to use a long filename interrupt for opening a file, when plain DOS on Win95 doesn't support long filenames. Regards, Rob Craig Rapid Deployment Software http://members.aol.com/FilesEu/