
How to call a 16-bit dll in a 32-bit application
Quote:
> >I would like to call a function in a 16-bit Windows-DLL from a 32-bit
> >application. The conventional method using the declare statement doesn't
> >work of course. So I am in sort of a fix. Could anybody please tell me
> >if making such a call is possible and if so how to make the call.
> You need to write a 32bit DLL which "thunks" into the 16bit DLL. Although
> not impossible, it is probably impractical. So offhand, I'd say you are
> still in a fix.
> However, if you have a lot of money to spend I would be willing to write
> the DLL.
> John Anderson
> Algorithm Engineering
If you want to avoid thunking and can use
Visual Basic then you can wrap
your 16 Bit DLL in an OLE server. You then access the OLE server from
your 32 bit application. It's not the best solution and I haven't tried
it myself yet but it works.
Julian Atkinson.