home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.rarlab.com
/
2014.05.ftp.rarlab.com.tar
/
ftp.rarlab.com
/
rar
/
UnrarGUI.zip
/
DLLMan.h
< prev
next >
Wrap
C/C++ Source or Header
|
2003-12-21
|
710b
|
28 lines
//---------------------------------------------------------------------------
#ifndef DLLManH
#define DLLManH
//---------------------------------------------------------------------------
#include <Windows.h>
#include <Winbase.h>
#include <Sysutils.hpp>
//---------------------------------------------------------------------------
class DLLAbort : public Exception {
public:
inline __fastcall DLLAbort(const AnsiString Msg) : Exception(Msg) { }
};
class DLLMan {
public:
HINSTANCE Hand;
DLLMan(char *DllName);
void GetProcAddr(FARPROC &Proc, char *ProcName);
~DLLMan();
#define GetProcess(Proc, ProcName) GetProcAddr((FARPROC)Proc, ProcName)
};
#endif