Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

...missing export KERNEL32.DLL:LoadLibrary16

2 views
Skip to first unread message

Jørgen Aase

unread,
Nov 30, 1997, 3:00:00 AM11/30/97
to

I get a runtime error when trying to call LoadLibrary16.

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

aphrael

unread,
Dec 1, 1997, 3:00:00 AM12/1/97
to

In article <3481B9...@c2i.net>, Jørgen Aase <ja...@c2i.net> wrote:

>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

0 new messages