谁写过多进程的程序阿,能帮我写一个吗,最简单的好了,实现过程:按任意二个按钮,这二个按钮各自实现其功能;能运行就行,拜托了各位,急!!!
Email:[email protected]

解决方案 »

  1.   

    unit Unit2;
    interface
    uses
      Classes;
    type
      TMyThread = class(TThread)
      private
        { Private declarations }
      protected
        procedure Execute; override;
      end;
    implementation
    { TMyThread }
    procedure TMyThread.Execute;
    begin
      { Place thread code here }
    end;
    end.
      

  2.   

    sorry,用CreateProcess
    The CreateProcess function creates a new process and its primary thread. The new process runs the specified executable file in the security context of the calling process.