ShellExecute解决办法
ShellExecute
我在C++Builder中用 ShellExecute(0, "Open", ExeName.c_str(),"abc",NULL,SW_SHOW); 然后在Delphi中用
end;
procedure TMainForm.FormCreate(Sender: TObject);
var
hsList: THashedStringList;
I: Integer;
begin
hsList := THashedStringList.Create;
try
for I := 1 to ParamCount - 1 do
begin
hsList.Add(ParamStr(i));
end;
ShowMessage(hsList.Text);
finally
hsList.Free;
end;
end;
怎么接收不到参数abc,还有个问题,就是我要发送多个参数时是什么格式的!
------解决方案--------------------
我在C++Builder中用 ShellExecute(0, "Open", ExeName.c_str(),"abc",NULL,SW_SHOW); 然后在Delphi中用
end;
procedure TMainForm.FormCreate(Sender: TObject);
var
hsList: THashedStringList;
I: Integer;
begin
hsList := THashedStringList.Create;
try
for I := 1 to ParamCount - 1 do
begin
hsList.Add(ParamStr(i));
end;
ShowMessage(hsList.Text);
finally
hsList.Free;
end;
end;
怎么接收不到参数abc,还有个问题,就是我要发送多个参数时是什么格式的!
------解决方案--------------------