thunking (calling 16 bit dll's from 32 bit app)

thunking (calling 16 bit dll's from 32 bit app)

Post by Mark Buchwa » Fri, 20 Sep 1996 04:00:00



Hi there,

Can anybody give me any information or tell me where I can find any on
thunking (calling 16 bit dll's from my delphi 2.0 app). A good example would
be the best.

Thanks in advance.

 ,-,-,-.            ,---.    ,-,---.      .          .   .
 `,| | |  ,-.,-.. , |  -'     '|___/. .,-.|-.. , ,,-.| ,-|
   | ; | .,-||  |/  |  ,-',.  ,|   \| ||  | ||/|/ ,-|| | |
   '   `-'`-^'  |\  `---| `' `-^---'`-'`-'' '' '  `-^`'`-'
                ' `  ,-.|
                     `-+'

 
 
 

thunking (calling 16 bit dll's from 32 bit app)

Post by Roy Nels » Sat, 21 Sep 1996 04:00:00


Look at an article in The Delphi Magazine, Issue 12, August 1996 and a follow
up submission in issue 13 (September 1996), this article is Copyright ? 1996

For information on The Delphi Magazine, contact Chris Frizelle on

-Roy.


>Hi there,

>Can anybody give me any information or tell me where I can find any on
>thunking (calling 16 bit dll's from my delphi 2.0 app). A good example would
>be the best.

>Thanks in advance.

> ,-,-,-.            ,---.    ,-,---.      .          .   .
> `,| | |  ,-.,-.. , |  -'     '|___/. .,-.|-.. , ,,-.| ,-|
>   | ; | .,-||  |/  |  ,-',.  ,|   \| ||  | ||/|/ ,-|| | |
>   '   `-'`-^'  |\  `---| `' `-^---'`-'`-'' '' '  `-^`'`-'
>                ' `  ,-.|
>                     `-+'



 
 
 

thunking (calling 16 bit dll's from 32 bit app)

Post by Russ Garn » Wed, 25 Sep 1996 04:00:00




Quote:>Hi there,

>Can anybody give me any information or tell me where I can find any on
>thunking (calling 16 bit dll's from my delphi 2.0 app). A good example would
>be the best.

I'd highly recommend Brian Long's articles in the Delphi Magazine -
Issues 12 and 13.  The article in Issue 12 will give you a good
grounding in the principles needed to achieve a stable thunk directly
from Delphi, and the disk supplied with issue 13 has a unit on it
containing a function 'Call16BitRoutine' which you can use to call
16-bit DLLs utterly painlessly and without need for coding.  It's
saved me no end of time.

Delphi Magazine can be contacted at :-


Tel: +44 (0)181 249 0354        Fax: +44(0)181 249 0376

Cheers,

Russ.

 
 
 

1. Thunking from 32-bit to 16-bit

Hello,

I am write school administration software, which used to use Btrieve
6.10 on a Novell Server. Since schools don't have much money, I would
like to use Btrieve 6 further on (because it comes with Netware) but
with a 32-Bit-Delphi-Application which runs on Win 95/98/NT/2000
(instead of my old DOS application).

So I have to use the old Windows-3-DLL wbtrcall.dll to call the
Btrieve-6-engine on the Novell server.

This implies that I have to use the Microsoft thunking mechanism to get
the calls along DLL-32 and DLL-16.

Does anyone has this already worked out ? And would explain this in
details to me ?
This would be very nice !

Regards, Uwe Labs.

(I hope this message is not deleted by any of the Pervasive people. I
know, it is not the stategy of Pervasive to use this method. But as I
outlined, schools don't have money. So this method would help at least
for some time).

2. Recordset

3. Calling 16 bit Dll from 32 bit program

4. Strange 'iserrno' returned under CISAM

5. corruption of 16 bit db when used by both 16 and 32 bit apps

6. MS Access to SQL Server with optimizer hints in query or less selective optimizer (more details)

7. Migrating 16-bit ODBC DLL (SQLServer) to 32-bit ODBC DLL (MS Access)

8. where can I get oracle for solaris x86

9. 16 bit + 32 bit apps complaining

10. 32 bit app / 16 bit DB

11. Converting a VB4.0 16 Bit app to VB5 32 bit

12. Connect 16-bit VB app to 32-bit Access 97 DB