从A.exe中打开B.exe的问题 一般游戏打开的时候都有个更新的程序(A.exe)然后再从更新程序中启动真正的游戏登陆程序(B.exe)在游戏登陆程序(B.exe)的启动参数已经获得的情况下:请问什么用api函数可以实现自动打开游戏登陆程序(B.exe)即实现自动实现从A.exe到B.exe程序的过程 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 从程序中运行程序除了winexec外,还有ShellExecute或CreateProcess具体有见windows SDK HELP unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,ShellAPI;type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);//打开微软的计算器begin ShellExecute(Handle, 'open', PChar('C:\WINDOWS\system32\calc.exe'), nil, nil, SW_SHOW);end;end. 记得要引用ShellAPI 楼上忘了启动参数了b.exe需要a.exe传过来的启动参数才能启动现在启动参数有了,就是不知道怎么使用 ShellExecute(Handle, 'open', PChar('C:\WINDOWS\system32\calc.exe'), [read]参数[/read], nil, SW_SHOW); WinExec('cmd /kecho Parameter', SW_SHOW) sql 语句定义的变量如何在delphi中执行 没有兴趣写代码,今天竟然在csdn上呆了一天,不停的F5 各位,请问有关EXE中嵌浏览器的问题? tlistview...问题 在线等,散分啦!SQL数据库能不能存JPG格式图片?如何做啊?? 如何用ADO联结Paradox的数据表? 哪里有delphi 5.5 下载? 请问有谁知道用delphi6做软件启动闪现封面!!! 怎樣統計數據庫中的數據? 我想选择一个目录,并且保存到一个字符串中该怎么办? 求corba接口电子书 Delphi中数据库查询的疑惑
具体有见windows SDK HELP
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,ShellAPI;type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);//打开微软的计算器
begin
ShellExecute(Handle, 'open', PChar('C:\WINDOWS\system32\calc.exe'), nil, nil, SW_SHOW);
end;end.
记得要引用ShellAPI