两个EXE文件,主程序调用从程序,前提是从程序只能通过主程序调用来运行,主程序中调用代码:if FileExists('从程序.EXE') then ShellExecute(Handle,'Open','从程序.EXE','subsky',Nil,SW_ShowNormal); 从程序中: 在DPR文件中 if ParamStr(1) = 'subsky' then begin //窗体创建操作.... end 其中 subsky 为所需要传入的参数string类型 Please Mail Me: [email protected]
ShellExecute(Handle,'Open','从程序.EXE','subsky',Nil,SW_ShowNormal);
从程序中:
在DPR文件中 if ParamStr(1) = 'subsky' then
begin
//窗体创建操作....
end
其中 subsky 为所需要传入的参数string类型 Please Mail Me: [email protected]