看到这个帖子的进来看一下。

wgy081 2003-06-04 01:51:09
有两个执行文件(A和B)。如果A 要调B 的执行文件,并且A要传送给B 三个参数,才能是B 执行文件正常运行。
这样A执行文件的参数要怎样写。B 的三个参数应该写在那里。才能接受A传过来的参数。
问题解决了,就给分。如果分不过我在加。
...全文
40 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
duxin 2003-06-04
  • 打赏
  • 举报
回复
两个可执行文件通信可以用com啊
简单一点就用内存映射文件
DelphiBoy2003 2003-06-04
  • 打赏
  • 举报
回复
命令行参数
bbs791109 2003-06-04
  • 打赏
  • 举报
回复
ShellExecute(

HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
);
wgy081 2003-06-04
  • 打赏
  • 举报
回复
to: firetoucher
用程序命令行参数。这样设置呀。这个我不熟悉呀
to:tw_cshn
用winexec这个函数所带的参数的给B 参数。
那么B代码里面要怎样设置呀。
szchi 2003-06-04
  • 打赏
  • 举报
回复
例 输出三个数中最大值的过程
A:
var n,m,l integer;
begin
n=1;
m=2;
l=3;
larest(n,m,l);
......
end;


B:
procedure largest(a,b,c:integer);
begin
if (a>=b) and (a>=c) then writeln(a);
if (b>=a) and (b>=c) then writeln(b);
if (c>=a) and (c>=b) then writeln(c);
end.
jianke5555 2003-06-04
  • 打赏
  • 举报
回复
A和B都是可执行文件吧?
tw_cshn 2003-06-04
  • 打赏
  • 举报
回复
用WinExec参数直接写在路径里就可以了
joycici 2003-06-04
  • 打赏
  • 举报
回复
学习中~
duxin 2003-06-04
  • 打赏
  • 举报
回复
他的意思好象 只a调b吧
firetoucher 2003-06-04
  • 打赏
  • 举报
回复
直接用程序命令行参数
hammer_shi 2003-06-04
  • 打赏
  • 举报
回复
互相调用?谁先执行?学习~

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧