436____________________________________________ 7

 ,    DLL,   .lib.   .lib 
       .

     ,  
DLL     ,    - -
   .       . 
, ,    .   
    ,    -
   -     .

     ,  
,       LoadLibrary API Win-
dows.     GetProcAddress     -
   .      -
.      FreeLibrary     -
. , ,    mydll.dll,  
 MyFunctionQ.       -
         -
.       . :

void (_stdcall *MyFunction)(HWIND)
        :

//  DLL
HINSTANCE dlllnstance = LoadLibrary("mudll-dll" ),

//   
MyFunction = (void(_stdcall*)(HWIND) GetProcAddress(dlllnstance,

" MyFunction");

//  
MyFunction (Application-handle) ;

//  DLL
FreeLibrary(dlllnstance) ;

 ,    .       -
    ,   -
  .

7.5.3  DLL

  DLL     File | New   
 New Items   New  DLL.     
,     :

//-

//

include <vcl.h>

#pragma hdrstop

//

// Important note about DLL memory management when your DLL
// uses the static version of the RunTime Library:

//

// If your DLL exports any functions that pass String objects

// (or structs/ classes containing nested Strings) as parameter

// or function results, you will need to add the library

// MEMMGR.LIB to both the DLL project and any other projects

// that use the DLL.  You will also need to use MEMMGR.LIB

// if any other projects which use the DLL will be perfomring

// new or delete operations on any non-TObject-derived classes

// which are exported from the DLL. Adding MEMMGR.LIB to your

// project will change the DLL and its calling EXE's to use the