BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DBXpress/DB Explorer data types mismatch?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
keks42
Guest





PostPosted: Mon Oct 09, 2006 9:10 pm    Post subject: DBXpress/DB Explorer data types mismatch? Reply with quote



Hi,

I try to develop a new dbxpress driver DLL using Turbo Delphi 2006
(+hotfix rollup) and included DBXpress unit. I am using the new version
'3.0' interface which implements the ISQL...30 interfaces. I am having
some problems and I believe some may be on my side, but one problem
does not seem so:

I use a test application which connects dynamically to the Database.
This works with some minor errors. As a second debugging test I use
dbexplorer to load the driver DLL. But DBExplorer immediately returns
with initialization error after calling ISQLDriver.getSQLConnection().
There was definitively no problem detected in my DLL. After some time
of debugging I switched to the CPU window (disassembler) in order to
find out why DBExplorer thinks that initialization failed.

And - it looks like DB Explorer is expecting a 32bit return variable,
whereas DBXpress unit defines SQLResult as Word type (16bit). The DLL
only sets AX value and DBExplorer evaluates EAX. For a cross check I
made a local copy of DBXpress.pas and changed the SQLResult type to
Cardinal. And yes, now DB Explorer accepts the getSQLConnection() and
other calls into the DLL.

What does this mean? Is the SQLResult type erroneous or is DBExplorer
erroneous?

If someone from Borland could reply to this I would be pleased.

keks42
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.