   ___________________437

// BORLNDMM.DLL as their memory manager.  In these cases, the

// file BORLNDMM.DLL should be deployed along with your DLL.

//

// To avoid using BORLNDMM.DLL, pass string information using

// "char *" or ShortString parameters.

//

// If your DLL uses the dynamic version of the RTL, you do not

// need to explicitly add MEMMGR.LIB as this will be done

// implicitly for you

( :      DLL, 
 DLL      
RunTime Library:

  DLL  -   , 
         
  String (   ,  
),     MEMMGR.LIB    DLL, 
   ,   DLL.    
MEMMGR.LIB   ,    (new) 
 (delete)     DLL , 
 TObject.  MEMMGR.LIB     DLL 
  ,      
BORLNDMM.DLL    .    
BORLNDMM.DLL       DLL.

   BORLNDMM.DLL,  
    char *  ShortString.

  DLL    RTL,     
  MEMMGR.LIB,      
.)

//

int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*)
{

return 1;

}
//

         . 
   ,          
  (char *),  , , AnsiString.    ,  -
  DLL  ,    
borlndmm.dll. ,       DLL , -
      char,     
.    :   
      . ,   
 :       
    ,     .

     :

AnsiString Code(AnsiString s, char Key)
(

for (int i = 1; i <= s.Length(); i++)
s[i] = s[i]  Key;

return s;

}

    DLL     :

char * Code(char *s, char Key)
{

for (int i = 0; ; i++)

{
if (s[i] == '\0') break;