Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DynLibrary Class Reference

Loads a dynamic library at runtime. More...

#include <DynLibrary.h>

List of all members.

Public Member Functions

 DynLibrary (const std::string &name) throw (SysError)
 loads a dynamic library
 ~DynLibrary ()
 destructor, free any allocated resource
FARPROC getProcAddress (const std::string &name) const throw (SysError)
 returns a pointer to a function of the library

Private Attributes

HMODULE hModule
 the library handle


Detailed Description

Loads a dynamic library at runtime.

This class loads a dynamic library (.dll under windows) at runtime


Constructor & Destructor Documentation

DynLibrary::DynLibrary const std::string &  name  )  throw (SysError)
 

loads a dynamic library

Parameters:
name is the name of the library
Exceptions:
SysError if something goes wrong
See also:
SysError

DynLibrary::~DynLibrary  ) 
 

destructor, free any allocated resource


Member Function Documentation

FARPROC DynLibrary::getProcAddress const std::string &  name  )  const throw (SysError)
 

returns a pointer to a function of the library

Parameters:
name is the name of the function
Returns:
A pointer to the function
Exceptions:
SysError if the function is not found in the dyn library
See also:
SysError


Member Data Documentation

HMODULE DynLibrary::hModule [private]
 

the library handle


The documentation for this class was generated from the following files:
Generated on Thu Jun 16 00:13:15 2005 for Netlib for Abuse! by  doxygen 1.4.3