News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Thunk calling a 16-bit DLL

Started by Glenn9999, April 03, 2011, 07:05:35 PM

Previous topic - Next topic

Glenn9999

I have a 16-bit DLL that I was wanting to try and call from a 32-bit program.  The DLL really doesn't have a replacement, so really thunk calling it is the only way.  I found a couple of samples, but they have various problems.    Does anyone have a definite way to be able to do this on any operating system?

jj2007

I have only experience the other way round, but here is a piece that might give you an idea.

dedndave

even if you can do it, you will have problems   :P
what is the function of the DLL ? - it may be easier, and it would certainly be better, to replace it with 32-bit

jj2007

Attached a little testbed. The problem is the undocumented UTRegister function, see here for a bit of "support".

P.S.: I hope the author of this excellent article on GfaBasic sees this post, and might give us a hint.