谁熟悉ShellExecutea,iswindowa()这两个函数,能讲讲怎样使用吗?

supermanszr 2003-08-24 10:21:02
我使用ShellExecutea执行一个*.bat文件,打开一个应用程序窗口(c:\winnt\system32\cmd.exe),
ll_return=ShellExecutea(handle(parent), "open", "xxx.bat", "", ls_path, 0)
ll_handle = FindWindowA(null,"c:\winnt\system32\cmd.exe")
再用
do while iswindowa(ll_handle)
loop
来判断窗口是否关闭,但是我发现:c:\winnt\system32\cmd.exe程序执行完了,
而且退出了dos窗口, 但是
iswindow(ll_handle) 仍然为true 陷入了死循环。

我该怎么办?????????????
...全文
46 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
polugen 2003-08-24
  • 打赏
  • 举报
回复
DOS窗口不同于一般的窗口

680

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder API 调用
社区管理员
  • API 调用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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