dbTalk Databases Forums  

Btrieve 6.15 and vb6

comp.databases.btrieve comp.databases.btrieve


Discuss Btrieve 6.15 and vb6 in the comp.databases.btrieve forum.



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

Default Btrieve 6.15 and vb6 - 02-12-2004 , 09:11 AM






Hi all,
I am trying to access Btrieve 6.15 Database through the Btrieve
API from wbtrv32.dll(btrieve 6.15 version). Indeed, I have succesfully
get everything done. However, whenever I am under vb6 debug mode, I
get error 49 "Bad dll Calling convention". This does not happen when I
compile the exe and run the executable. So, I am just wondering if
anybody faced this kind of issue before and may be you can share with
me.

Some additional information and specific questions:
(i) Is wbtrv32.dll(Btrieve 6.15) using _stdcall?
Since dll not using _stdcall may result bad dll calling
convention and
miss up the stack.

(ii) My function declarations:
Declare Function BTRCALL Lib "wbtrv32.dll" (ByVal OP%, _
ByVal Pb As Any, _
BtRec As Any, _
DataLen As Integer, _
KeyBuf As Any, _
ByVal KeyLen%, _
ByVal KeyNo%) As Integer

(iii) I don't know if the following information is equivalent.
I tested all my code with wbtrv32.dll(Pervasive 2000i) and
there is no problem during runtime and debug mode.

(iv) The Bad Dll Calling Convention does not occur on the line
BTRCALL is called:

Suppose:
Sub A()
... some code
A= BtRcall(...)
... some code
End sub

The Bad Dll calling convention occurs on my own function A.

Thanks very much for your kind attention and hope that U can help!

Reply With Quote
  #2  
Old   
JohnR
 
Posts: n/a

Default Re: Btrieve 6.15 and vb6 - 02-19-2004 , 12:25 PM






Quote:
I am trying to access Btrieve 6.15 Database through the Btrieve
API from wbtrv32.dll(btrieve 6.15 version). Indeed, I have succesfully
I would download the Pervasive.SQL V8 SDK and try using that with VB6
(use the wbtrv7.dll interface instead of wbtrv32.dll) since it is
supported and once you get everything going, update your production
systems to V8. You may get an old Btrieve6/VB6 programmer to help you
out, but that is no longer supported by Pervasive,however the Btrieve
interfaces are supported with Pervasive.SQL V8 and you can get support
directly from Pervasive's excellent Developer Support team or you can
get help on the Pervasive forum DevTalk off the Pervasive site -
www.pervasive.com/devtalk.

Good luck,
JR


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.