 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
keks42 Guest
|
Posted: Mon Oct 09, 2006 9:10 pm Post subject: DBXpress/DB Explorer data types mismatch? |
|
|
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 |
|
 |
|
|
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
|
|