Restart Delphi Application Programmatically

前端 未结 9 1463
情深已故
情深已故 2021-02-09 06:58

It should not be possible to run multiple instances of my application. Therefore the project source contains:

CreateMutex (nil, False, PChar (ID));
if (GetLastEr         


        
9条回答
  •  说谎
    说谎 (楼主)
    2021-02-09 08:02

    checkout this way:

    Simply runs a new application and kills the currernt one;

    http://www.delphitricks.com/source-code/windows/restart_the_own_program.html

提交回复
热议问题