Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!hacgate!ashtate!dbase!jamesc From: jamesc@dbase.A-T.COM (James Chuang ) Newsgroups: comp.windows.ms.programmer Subject: GetProcAddress() in a DLL Keywords: win3 DLL SetWindowsHook Message-ID: <1991May21.205525.10557@dbase.A-T.COM> Date: 21 May 91 20:55:25 GMT References: <1991May15.133642.40@mgc.uucp> Reply-To: jamesc@dbase.UUCP (James Chuang ) Organization: Ashton-Tate Lines: 18 Hello world: I'm trying to use SetWindowsHook() in a DLL. I've been trying to use GetProcAddress() to get the address of the callback function. No luck. It always returns 0 for the address, which is pretty useless. I have made sure of the following: callback function is exported in the DLL's .def file the name is correct, I have tried all variations there... I've even tried to explicitly load the library with LoadLibrary, then use the library handle to call GetProcAddress(). All I get there is a UAE. I've also tried using the ordinal numbers defined in the .def, no luck there. How can it be done.....? thanks jamesc #include