delphi 打不开CS

来源:百度知道 编辑:UC知道 时间:2024/09/21 03:23:50
WINEXEC('d:\game\cs\csstricker.exe',sw_show);
用这个语句打开CS时 CS建游戏载不进去
不用DELPHI打开CS可以用

ShellExecute(nil, nil',PChar('d:\game\cs\csstricker.exe'),nil,nil, SW_SHOWNORMAL);

试试用shellexecute

uses ShellAPI;
ShellExecute(handle, 'open',PChar('d:\game\cs\csstricker.exe'),nil,nil, SW_SHOWNORMAL);

uses ShellAPI;
先setcurrentdirctory,设置成cs所在目录
ShellExecute(handle, 'open',PChar('d:\game\cs\csstricker.exe'),nil,nil, SW_SHOWNORMAL);

进入CS所在程序,
查杀病毒,
打开主控机,
点"帮助"