Class TDLLLoader (unit DLLLoader)

Inherits from

TComponent

Constructors


constructor Create( AOwner: TComponent );



Functions

destructor Destroy;


procedure FreeAll;


function ProcAddress( const sDLL, sProc: string ): pointer;

******************************************** 1) Check to see if the DLL is loaded 2) If not, load it, removing the last one loaded if cached limit was exceeded.

procedure SetName( const sDLL: string );

******************************************** Set the DLL name.

Properties

property CacheSize : byte


property Path : string


Events

Variables

FCache : byte;


FPath : string;


lstDLL : TStrings;


sDLLName : string;



Constructors


constructor Create( AOwner: TComponent );


Functions


destructor Destroy;


procedure FreeAll;


function ProcAddress( const sDLL, sProc: string ): pointer;

******************************************** 1) Check to see if the DLL is loaded 2) If not, load it, removing the last one loaded if cached limit was exceeded. 3) Return the proc address.


procedure SetName( const sDLL: string );

******************************************** Set the DLL name.


Properties


property CacheSize : byte


property Path : string


Events


Variables


FCache : byte;


FPath : string;


lstDLL : TStrings;


sDLLName : string;