    ______________379

          -
 POverlay,      OMenage.exe.

     :  -
  POverlay    Editi  .    .
    POverlay  :

ftinclude <vcl.h>

ftpragma hdrstop

USERES("POverlay.res") ;

USEFORM("UOverlayl.cpp", Formi) ;

ftinclude "UOverlayl.h" //    

//-

WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR IpCmdLine, int)
f

try
(

Application->Initialize();

Application->CreateForm(_classid(TFormI), &Forml);

Forml->Editl->Text = IpCmdLine;        //   Editi
Application->Run();

}

catch (Exception sexception)
{

Application->ShowException(&exception) ;

}
return 0;

)

    ,  C++Builder,   -
   ( ): ,   
 UOverlayl.h,     Formi,  , -
 \ Editi ,    .  
          
WinMain  IpCmdLine     .   
 POverlay   ,    OMenage -
       :

spawnlp(P_OVERLAY,"POVERLAY.exe","POVERLAY.exe",IpCmdLine,NULL) ;

    ,   ,    
 ,      OMenage.   
 POverlay    ,   -
   Editi.

 spawnip    ,  8 -
 .         14  
14.14.2.        , -
  ,    ,    -
     ./, .

6.1.3     WinExec

 WinExec,       , -
      .  
     Windows    : -
 Windows, MS-DOS,  PIF  ..  WinExec  -
 :

int WinExec(const char *CmdLine, unsigned int CmdShow);