Delphi 无法结束进程的程序


本文整理自网络,侵删。

 unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,ShellAPI;

type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
ShellExecute(0, 'open',PAnsiChar(Application.Exename),nil,nil, SW_SHOWNORMAL);
ExitProcess(0);
end;

end.

相关阅读 >>

Delphi idhttp批量上传图片

学习使用Delphi for android 调用java类库

Delphi获取jpg、gif、png等格式图片的大小(高度和宽度)

Delphi 使用泛型的 tarray 从动态数组中查找指定元素

Delphi adoconnection1 连接excel表格读取数据

Delphi在文件结尾写入和读出数据

Delphi禁止用鼠标拖动窗口的大小

Delphi 如何解决在dll的入口函数中创建或结束线程时卡死

Delphi 为richedit设置行号

Delphi 跨平台获取文件列表

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...