I've made a .def file containing this:
LIBRARY KERNEL32
EXPORTS
LoadLibrary16 @35
FreeLibrary16 @36
GetProcAddress16 @37
then I used implib to generate a kernel32.lib file which I put in my the
makefile of my main program.
in my program I prototyped the functions like this:
void __cdecl QT_Thunk(void);
#ifdef __cplusplus
extern "C" {
HINSTANCE WINAPI LoadLibrary16(LPCTSTR);
BOOL WINAPI FreeLibrary16(HINSTANCE);
FARPROC WINAPI GetProcAddress16(HINSTANCE, PSTR);
}
#endif
Compiling and linking works without errors, but then I get the error
message:
The file prosject1.exe is connected to missing export
KERNEL32.LIB:LoadLibrary16
So, do anyone know what I'm missing?
--
Jørgen Aase
Schleppegrellsgt 2B
0556 OSLO
22 71 44 28
>The file prosject1.exe is connected to missing export
>KERNEL32.LIB:LoadLibrary16
>
>So, do anyone know what I'm missing?
Hmmm.
On my NT4 box, kernel32.dll doesn't seem to export a
loadlibrary16, at least not by name at any rate.
I suspect that you might have to call this directly via
makeprocinstance() ...
--
"Am I two souls/one hard, one whole/am i real?"
--Toad the Wet Sprocket
Robert D. West | Borland Online