Can VB4.0 32 Bit call a 16 bit DLL 
Author Message
 Can VB4.0 32 Bit call a 16 bit DLL

Shannon,

You cannot directly access a 16 bit dll using VB4 for the 32bit
environment. Sorry.  You can, however, use Visual C to create
a function that can be called from VB that will allow access to
all those 16 bit dlls.  The process is called "thunking".  
Microsoft also provides a thunk compiler (I think with VC++4.0)
that helps simplify the task.  There are a several articles on
the MSDN that explain it, as well as a very good article written
from the VB perspective.  The article "Thunk before you port"
appears in the Visual Basic Programmers Journal (March 96)
written by Steve Jackson.  

-----------------------------------------------------------

Nanoware, Inc.           Custom controls for Windows 95
http://www.*-*-*.com/  "Divide, conquer, then have lunch"
-----------------------------------------------------------



Thu, 10 Sep 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Calling 16 bit DLL's in VB5 ENV(32 bit)

2. calling a 16-bit dll from VB 32-bit

3. Need to write 32-bit DLL to do 16-bit calls to a software interrupt

4. calling a 16-bit dll from a 32-bit application

5. How to call a 16-bit dll in a 32-bit application

6. Calling 16 bit DLL from 32 bit app

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

8. Thunking, 16-bit app calls 32-bit DLL???

9. 32 Bit Program to call 16 Bit DLL

10. 16 bit .dll's and 32 bit VB4

11. Calling 32-bit DLL function from 32-bit VB4 app

12. Calling 16 bit DLL from VB4 16 bit in Win 95

 

 
Powered by phpBB® Forum Software