32-Bit dll call 16-bit dll 
Author Message
 32-Bit dll call 16-bit dll

Hello Everyone,

I am using Microsoft C++ 4.2 on Windows NT.  I have a 32-bit DLL which
needs to call function(s) in a 16-bit DLL.  Any helpful information
would greatly be appreciated.

Thanks in advance
scott



Sun, 13 Feb 2000 03:00:00 GMT  
 32-Bit dll call 16-bit dll

You need to use a mechanism called "THUNKING" look in the online docs
for more info.

THUNKING is generally not an easy, nor, portable thing (i.e. you can't
thunk 32bit to 16bit on NT) so you might want to investigate another
way.  For example create a 16bit EXE which loads your DLL and creates a
hidden window.  Then have your 32bit code communicate with the 16bit EXE
via DDE or OLE (the 16bit exe will call the dll and return values to
your 32bit program)

--
Author for Visual C++ Devloper          http://www.pinpub.com/vcd/
---
Believe it or not...
                It's just me....
---



Wed, 16 Feb 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Can you call a 32-bit dll from a 16-bit dll

2. 32-bit DLL call a 16-bit DLL

3. problem in 16 bit program calling 32 bit DLL

4. Calling a 16-bit system DLL from my 32-bit exe

5. generic thunking(call 32 bit dll from 16 bit application)

6. Calling 16-bit DLLs from 32-bit Applications

7. 16 bit app calling 32 bit DLL

8. Q: 16-bit DLL call from 32-bit VC++ App

9. Can a 16 bit App call a 32 bit Dll

10. generic thunking(call 32 bit dll from 16 bit application)

11. Can MS VC++ 4.1 32-bit call 16-bit DLL created by MS Fortran 5.1

12. Loading a 32-Bit DLL into a 16-Bit DLL

 

 
Powered by phpBB® Forum Software