🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2775

GetProcAddress() in a DLL

#2775
From: James Chuang
Date: Tue, 21 May 1991 20:55
18 lines
1170 bytes
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 <disclaimer.h>
Technical Details
Message-ID: <1991May21.205525.10557@dbase.A-T.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!hacgate!ashtate!dbase!jamesc
References: <1991May15.133642.40@mgc.uucp> <glenn.674521319@imagen>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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> <glenn.674521319@imagen>
Reply-To: jamesc@dbase.UUCP (James Chuang )
Organization: Ashton-Tate
Lines: 18