00001 /* 00002 Win32/getProcAddress version of CkDll class. 00003 This file can be #included whole by the configure script or ckdll.C. 00004 00005 WARNING: This file is untested-- it may not even compile! 00006 00007 Orion Sky Lawlor, olawlor@acm.org, 9/10/2002 00008 */ 00009 #include "ckdll.h" 00010 #include <windows.h> 00011 00012 CkDll::CkDll(const char *name) { 00013 handle=(void *)LoadLibrary(name); 00014 } 00015 void *CkDll::lookup(const char *name) { 00016 return GetProcAddress((Handle)handle,name); 00017 } 00018 CkDll::~CkDll() { 00019 UnloadLibrary((Handle)handle); 00020 } 00021 00022 const char *CkDll::extension=".dll";