• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

How to call functions in 16-bit dll?

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
zwwise
Asked:
zwwise
1 Solution
 
migelCommented:
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
 
Tommy HuiEngineerCommented:
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
 
wyy_cqCommented:
Thunk is want you need ,
there is sample with VC5.
0
 
jkrCommented:
thui - thunking is indeed the only method when strcutures or references are involved...
0
 
zwwiseAuthor Commented:
What is more easy, thunk or DDE server?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now