dbTalk Databases Forums  

Btriveve Win32 compatibility with Dos16

comp.databases.btrieve comp.databases.btrieve


Discuss Btriveve Win32 compatibility with Dos16 in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tomek
 
Posts: n/a

Default Btriveve Win32 compatibility with Dos16 - 02-04-2004 , 09:13 AM







Btrieve Problem

I have wrong betrieve file (as I assume) DOS application works on it OK. But
Windows application (wbtrv32.dll) fails.
How to make Win32 app to be fully compatible with DOS app. Or how to import
data from these file using win32 app.


I've got DOS application which stores data in btrieve files.
I want build Windows application who connects to these betrieve files
When I try to connect to most of the files everything is OK. But when I try
to connect do 1 file windows application (Visual Basic 6) stop, I want only
import file. Record by record.
The message is "wrong page in module KERNEL32.DLL"
To connect to these file I've use Visual Basic 6; Pervasive for WorkGroup
2000 (+ service Packs)


Example btrieve file and more info on page:
http://roman745.w.interia.pl/Index.htm


Thanks for help

T.



Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: Btriveve Win32 compatibility with Dos16 - 02-05-2004 , 12:05 PM






Obviously, your application is functioning, and it is accessing the Btrieve
database just fine. However, this one record type may just be causing a memory
overwrite, and once memory is trashed, bad things happen.

Re-examine all of your source code as it accesses this "bad" file. Make sure
that you have sufficiently large buffers for both the data buffer and the key
buffer. Be very wary of the "variable-length string" capabilities of VB -- you
may need to use some special workarounds or another way to access it. Check
your Pervasive.SQL SDK, or the Pervasive website, for examples on how to work
around this. (Search on "BASIC".)
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: March, 2004: See our web site for details!


Tomek wrote:

Quote:
Btrieve Problem

I have wrong betrieve file (as I assume) DOS application works on it OK. But
Windows application (wbtrv32.dll) fails.
How to make Win32 app to be fully compatible with DOS app. Or how to import
data from these file using win32 app.

I've got DOS application which stores data in btrieve files.
I want build Windows application who connects to these betrieve files
When I try to connect to most of the files everything is OK. But when I try
to connect do 1 file windows application (Visual Basic 6) stop, I want only
import file. Record by record.
The message is "wrong page in module KERNEL32.DLL"
To connect to these file I've use Visual Basic 6; Pervasive for WorkGroup
2000 (+ service Packs)

Example btrieve file and more info on page:
http://roman745.w.interia.pl/Index.htm

Thanks for help

T.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.