Getting 16bit VB4.0 programs to interface with 32bit VC++5.0 DLLs 
Author Message
 Getting 16bit VB4.0 programs to interface with 32bit VC++5.0 DLLs

Getting 16bit VB4.0 programs to interface with 32bit VC++5.0 DLLs.

I am trying to coerse a VB4.0 16 bit application to talk to a VC++5.0
DLL. I have complete disgression on how I change any source files.

I'd even be willing to consider using MASM to fool with getting
parameters off and on the call stack. (I know this is extreme, but I'm
deparate).

Please send any E-mail responses to:




Sat, 16 Oct 1999 03:00:00 GMT  
 Getting 16bit VB4.0 programs to interface with 32bit VC++5.0 DLLs

You have two choices (probably more, but its all I could think of now).
Make a 32bit EXE which creates an invisable window and loads the DLL.
Then use 1.) OLE or 2.) DDE to have the 16bit app communicate with the
32bit exe (which in turn calls the DLL).

16bit code can't _directly_ call 32bit code (and vice versa).  You need
to use a mechanism called THUNKING.  I'm not sure if VB supports
THUNKING but even if it does it would take just as long as a 32bit app
using OLE/DDE
--
All I want to say to you is
                                De do do do de do do do



Wed, 20 Oct 1999 03:00:00 GMT  
 Getting 16bit VB4.0 programs to interface with 32bit VC++5.0 DLLs

Try exposing your 32-bit VC++ 5.0 DLL with OLE Automation, and your VB 4.0
16-bit application should be able to use the 32-bit DLL.  Be advised that
there may be outstanding issues concerning 16-bit to 32-bit marshalling of
parameters, etc.



Quote:

> Getting 16bit VB4.0 programs to interface with 32bit VC++5.0 DLLs.

> I am trying to coerse a VB4.0 16 bit application to talk to a VC++5.0
> DLL. I have complete disgression on how I change any source files.

> I'd even be willing to consider using MASM to fool with getting
> parameters off and on the call stack. (I know this is extreme, but I'm
> deparate).

> Please send any E-mail responses to:





Tue, 26 Oct 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. DLL 16bit -> DLL 32bit

2. Calling 32bit DLL from 16bit DLL?

3. 32bit = 16bit x 16bit

4. 16bit .dll to 32bit help

5. 16bit .dll to 32bit help

6. 16bit .dll to 32bit help

7. SendMessage() from 16bit app to 32bit dll and GPF

8. 16bit DLL & 32bit app

9. Calling into 16bit LIB from 32bit DLL

10. porting 16bit dll file to 32bit in Visual C++ version 4.0

11. 16bit call 32bit dll

12. 16bit app calls to MFC 32bit DLL

 

 
Powered by phpBB® Forum Software