把两个程序合并在一起,并在绑定的一个程序运行完毕后才能运行另外一个程序,否则退出!
如传奇的自动更新,必须更新后才能登陆!

解决方案 »

  1.   

    WinExec
    The WinExec function runs the specified application. This function is provided for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function. UINT WinExec(
      LPCSTR lpCmdLine,  // address of command line
      UINT uCmdShow      // window style for new application
    );
      

  2.   

    procedure TForm1.FormDestroy(Sender: TObject);
    begin
      ShellExecute(0, nil, pchar('calc.exe'), nil, nil, SW_NORMAL)
    end;