Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

btfOpenFile error with D6

6 views
Skip to first unread message

Rob Roberts [TPX]

unread,
Nov 29, 2002, 12:30:59 PM11/29/02
to
John,

> I need to use an old utility program that I wrote with btree filer.
> I'm getting an INVALID_HANDLE_VALUE error in btfOpenFile in
> BTFILEIO.PAS. I've tried updating btree to the 5.55 version, but I'm
> really not sure if it cleanly updated or not. All that patching goes
> by quickly and it did not seem to help. Can someone tell me what the
> normal parameters to CreateFile() should be? Thanks for any help!

You should download the updated BTDEFINE.INC from the TurboPower Foundry.
B-Tree Filer v5.55 actually only supports Delphi up to version 5, but the
updated BTDEFINE.INC adds support for D6 and D7. (The Foundry also contains
D6 and D7-compatible packages which you will need if you use the
FvcBrowser.)

I'm not sure what you're asking regarding the parameters passed to
CreateFile. Do you mean the Windows CreateFile function? If so, see the
Windows SDK Help. Or do you mean BTCreateFileBlock? If so, see page 93 of
the manual (or the B-Tree Filer Help file.)

--Rob [TPX]


John Baima

unread,
Nov 29, 2002, 1:12:02 PM11/29/02
to
"Rob Roberts [TPX]" <do...@email.me> wrote:

>John,
>
>> I need to use an old utility program that I wrote with btree filer.
>> I'm getting an INVALID_HANDLE_VALUE error in btfOpenFile in
>> BTFILEIO.PAS. I've tried updating btree to the 5.55 version, but I'm
>> really not sure if it cleanly updated or not. All that patching goes
>> by quickly and it did not seem to help. Can someone tell me what the
>> normal parameters to CreateFile() should be? Thanks for any help!
>
>You should download the updated BTDEFINE.INC from the TurboPower Foundry.
>B-Tree Filer v5.55 actually only supports Delphi up to version 5, but the
>updated BTDEFINE.INC adds support for D6 and D7. (The Foundry also contains
>D6 and D7-compatible packages which you will need if you use the
>FvcBrowser.)

Yea, my problem is that I manually got Filer to compile under D6. I
used it for something else without any problems. At this point I
cannot even reinstall version 5.51 (the last version I have diskettes
for) because I get a "Runtime error 200 at 2265:0FB4" when I do
"A:INSTALL" with XP Pro. So, I think that I'm stuck.

>I'm not sure what you're asking regarding the parameters passed to
>CreateFile. Do you mean the Windows CreateFile function? If so, see the
>Windows SDK Help.

Where is that? It used to be part of the Delphi help system, but I
cannot find it at all. What is the file in D6???

Or do you mean BTCreateFileBlock? If so, see page 93 of
>the manual (or the B-Tree Filer Help file.)

Yea, but I think that I tossed the manual because I've not written a
new program with b-tree for at least a couple of years. All the old
utils I have had all worked just fine before this. I'd really like to
know what the Windows CreateFile parameters should be. Thanks for any
help!

-John Baima


Rob Roberts [TPX]

unread,
Nov 29, 2002, 2:11:47 PM11/29/02
to
John,

> Yea, my problem is that I manually got Filer to compile under D6. I
> used it for something else without any problems. At this point I
> cannot even reinstall version 5.51 (the last version I have diskettes
> for) because I get a "Runtime error 200 at 2265:0FB4" when I do
> "A:INSTALL" with XP Pro. So, I think that I'm stuck.

You can install B-Tree Filer manually by using LHA to extract the files from
the LZH file into the appropriate directories. (I think there is a file
called PACKING.LST that tells which directories the files go into.) Or, you
can use a program that slows your computer down, which should allow you to
run INSTALL without getting the runtime error 200. I haven't tried it, but
a user reported here that he used a program that he downloaded from
http://www.hpaa.com/moslo/ to slow his computer down to 40% of its normal
speed, which allowed him to run INSTALL without getting the runtime error
200.

> >I'm not sure what you're asking regarding the parameters passed to
> >CreateFile. Do you mean the Windows CreateFile function? If so, see the
> >Windows SDK Help.
>
> Where is that? It used to be part of the Delphi help system, but I
> cannot find it at all. What is the file in D6???

Hmm, I not sure where it is in D6. In D5 and D7 it is on the Help menu, but
I don't see it in D6. I think you can download it from the Microsoft web
site.

> Or do you mean BTCreateFileBlock? If so, see page 93 of
> >the manual (or the B-Tree Filer Help file.)
>
> Yea, but I think that I tossed the manual because I've not written a
> new program with b-tree for at least a couple of years. All the old
> utils I have had all worked just fine before this.

A Windows-version of the help file was included with v5.55. So you should
have it once you're done patching to v5.55.

> I'd really like to know what the Windows CreateFile parameters
> should be. Thanks for any help!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base
/createfile.asp

--Rob [TPX]


John Baima

unread,
Nov 29, 2002, 12:14:07 PM11/29/02
to
I need to use an old utility program that I wrote with btree filer.
I'm getting an INVALID_HANDLE_VALUE error in btfOpenFile in
BTFILEIO.PAS. I've tried updating btree to the 5.55 version, but I'm
really not sure if it cleanly updated or not. All that patching goes
by quickly and it did not seem to help. Can someone tell me what the
normal parameters to CreateFile() should be? Thanks for any help!

-John Baima

John Baima

unread,
Dec 3, 2002, 6:58:55 PM12/3/02
to
"Rob Roberts [TPX]" <do...@email.me> wrote:
>You can install B-Tree Filer manually by using LHA to extract the files from
>the LZH file into the appropriate directories. (I think there is a file
>called PACKING.LST that tells which directories the files go into.)

Thanks, I did that and I think that I am back in business. Thanks for
your help!

-John Baima


0 new messages