Solved

How to call functions in 16-bit dll?

Posted on 1998-12-09
5
200 Views
Last Modified: 2013-11-20
How can I call some functions in a 16-bit dll in Win32 programming?

I have not the 32-bit version of the dll. Is there some way
for me to work with the 16-bit dll?

Thank you.
0
Comment
Question by:zwwise
5 Comments
 
LVL 12

Expert Comment

by:migel
ID: 1325971
Hi! You can use Thunk compiler to create thin layer between your 32-bit app and 16-bit Dll. Example of this process you can find in MSDN or Dr Dob journal(sorry, i am not remember in what volume)
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1325972
Another idea would be to create a 16 bit executable that is also a DDE server.  Then from the 32 bit executable communicate to the 16 bit server through DDE. If DDE is too slow, use OLE automation.
0
 
LVL 2

Expert Comment

by:wyy_cq
ID: 1325973
Thunk is want you need ,
there is sample with VC5.
0
 
LVL 86

Expert Comment

by:jkr
ID: 1325974
thui - thunking is indeed the only method when strcutures or references are involved...
0
 

Author Comment

by:zwwise
ID: 1325975
What is more easy, thunk or DDE server?
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question