I am writing a DLL in C/C++ to expand the printing functions of OpenInsight for a specific purpose. After placing the DLL description in SYSPROCS, calling a dll function brings the error message "Function xyz is not present in abc.dll". I understand that this message reflects the fact that 32 bit functions cannot be directly called from 16 bit code. (Dll works fine with Visual Basic 5.0). If there is a procedure for making these dll functions available to OpenInsight via Basic+, then any information would be greatly appreciated.
The procedure you require is known as "thunking". If you're a competent C programmer you should have no problems with it. More details are available here or we can provide consultancy help.
amcauley@sprezzatura.com
World Leaders in all things RevSoft
Thanks Andrew. It would be stretching things a bit to describe myself as a competent C programmer. I have been searching the web for info on thunking but can only find specific references for calling 16 bit dll's from 32 bit programs, not the other way around. Microsoft's MSDN has virtually no info at all(that I can find anyway).
Trevor,
If you'll go to:
and do a search on "thunk" or "thunking", it will return several articles on how to write thunking DLL's that will allow 16-bit and 32-bit apps and DLL's to talk to each other.
Matt Sorrell
msorrell@movgal.com