July 16th, 1999, 06:29 AM
Hello friends,
I am currently involved in a project where I have to use an old 16-bit .DLL, (written in BC++ 4.5 - no sources available) from my Win32 application developed with VC++6.0.
I understand that I can not call the .DLL directly from my application. Searching the MSDN I found that there are two ways to tackle this problem:
- Use thunking
- Use another solution explained in Q141939 (Knowledge Base, Visual Basic for Windows KBase, Miscellaneous Related Information) that involves the use of a 16-bit OLE server that will wrap the 16-bit DLL functions and act as a bridge to
the 32-bit aplication.
The first soloution seems quite complicated to me and requires quite a lot of
work. I currently try the second one ( trying to develop the OLEServer with
BC++4.52) but I have not manage to make it work yet.
Does anybody know of any easier way to use 16-bit DLL from 32-bit application?
Any comments, suggestions and help will be greatly appreciated.
Thanks in advance
KGr
I am currently involved in a project where I have to use an old 16-bit .DLL, (written in BC++ 4.5 - no sources available) from my Win32 application developed with VC++6.0.
I understand that I can not call the .DLL directly from my application. Searching the MSDN I found that there are two ways to tackle this problem:
- Use thunking
- Use another solution explained in Q141939 (Knowledge Base, Visual Basic for Windows KBase, Miscellaneous Related Information) that involves the use of a 16-bit OLE server that will wrap the 16-bit DLL functions and act as a bridge to
the 32-bit aplication.
The first soloution seems quite complicated to me and requires quite a lot of
work. I currently try the second one ( trying to develop the OLEServer with
BC++4.52) but I have not manage to make it work yet.
Does anybody know of any easier way to use 16-bit DLL from 32-bit application?
Any comments, suggestions and help will be greatly appreciated.
Thanks in advance
KGr