Calling 16 bit Dll from 32 bit program

Calling 16 bit Dll from 32 bit program

Post by Gal Betse » Mon, 19 May 1997 04:00:00



Hello to everybody,

How  do I call a 16 bit Dll from a 32 bit application?

If I call it by 'LoadLibrary' the Return Handle is 0.

Thank in advance

Gal and Ronit

 
 
 

Calling 16 bit Dll from 32 bit program

Post by Paul Whittingto » Mon, 19 May 1997 04:00:00



> Hello to everybody,

> How  do I call a 16 bit Dll from a 32 bit application?

Welcome to the wide and wonderful world of thunking.  If you have a copy
of Microsofts MSDN handy look up something called thunking.  Thunking is
a technique of using a 16-bit DLL in Win32 land.  Try it you'll like it
:)
Quote:> If I call it by 'LoadLibrary' the Return Handle is 0.

> Thank in advance

> Gal and Ronit


 
 
 

Calling 16 bit Dll from 32 bit program

Post by Peter Johnso » Tue, 20 May 1997 04:00:00


Quote:> How  do I call a 16 bit Dll from a 32 bit application?
> If I call it by 'LoadLibrary' the Return Handle is 0.

Have a look at my unoffical Win32 programming FAQ at
http://www.web-span.com/pjohnson/. At the moment there isn't a lot of
detail on this topic but it does give you the idea of where to go looking.
I hope to be adding some specific code examples for this problem in the
next few weeks.
 
 
 

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

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.

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

2. User Needs Analysis Assistance

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

4. DTS Components PLEASE HELP!

5. Migrating from 16-bit btrieve dll to 32-bit

6. Cross-database foreign key references are not supported.

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

8. Data Warehouse Classifier Models

9. 16-bit SQL*Plus/16-bit ORA7WIN.DLL/windows 3.1/TOOLHELP.DLL/BOOOOM

10. 16-bit/32-bit ODBC drivers - NT Environment

11. 16 bit ODBC drivers in the 32 bit environment

12. 16-bit versus 32-bit