I've emailed you the source. If you're getting an 11 be very careful that you aren't using a long file name for a database and that it's not in a long filename directory and that it's on a mapped drive (not UNC - you need a drive letter). Btrieve is very, very, very, very picky about these things. Pretend you're using a DOS computer and you'll be fine (no long or UNC anything). There might be ways to make it work with long file names, UNC, etc, but if you want it to work every time, don't use them.
Per the VB code, it won't work as-is in powerbasic because PB treats ByVal strings differently than VB.
Best Regards,
Don
Originally posted by Mike Doty:
Don,
I tried using a 128-byte asciiz string and
alot of other combinations. This code
works in Visual Basic "as is" so I'm thinking
it could be the word alignment in the structure.
I can access records ok, but the create is
the problem with error 11 (invalid file name.)
I've place code before and after the call to
see if anything changes. The position block
changes in length from 128 to 124 bytes using len.
I've tried passing filname + chr$(0), etc.
I have sent you a private e-mail requesting the source.
Thanks again,
Mike
mailto:[email protected][email protected]</A>
Don,
I tried using a 128-byte asciiz string and
alot of other combinations. This code
works in Visual Basic "as is" so I'm thinking
it could be the word alignment in the structure.
I can access records ok, but the create is
the problem with error 11 (invalid file name.)
I've place code before and after the call to
see if anything changes. The position block
changes in length from 128 to 124 bytes using len.
I've tried passing filname + chr$(0), etc.
I have sent you a private e-mail requesting the source.
Thanks again,
Mike
mailto:[email protected][email protected]</A>
------------------
Leave a comment: