Re:Using 16-bit DLL's with Delphi 2.0
In article <557uis$...@news1.saix.net>, jul...@igubu.saix.net says...
Quote
>I think this topic has come up here before, but I hope someone can
>point me in the right direction.
>not). How do I get Delphi 2.0 to recognise existing 16-bit DLL's?
In order to get any kind of communication between 16-bit and 32-bit
processes, you have to use a technique known as thunking. It's too
complicated to explain in a news article. Suffice it to say that
it's a major undertaking. The bottom line is you basically wind
up with another DLL that acts as a middleman between your 32 bit
app, and your 16 bit app. It has to do a lot of re-mapping and
translating to get everything to work. It's usually better just
to recreate the functionality of the 16 bit DLL as 32 bit, if it's
one you did yourself. If it's a vendor DLL, see if they've got a
32-bit version of it. Thunking is a last, desperate resort.
jdm1i...@airmail.net