Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8249
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: ShellExecute works one time and then only again after re-entering the program |
| Date | 2015-06-26 10:35 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mmjnv7$a8g$1@speranza.aioe.org> (permalink) |
| References | <ihminadbcjcefec7tnuqbcblqtjs7q63p9@4ax.com> <mmbvds$3vv$1@speranza.aioe.org> <6uhooaln4plf710eddsj9mjjp1634mm9c0@4ax.com> |
Hi Dick,
It is a combination of passing the exe path in the lpDirectory parameter and
show flag.
In my apps, I call several specialized external EXE programs which I've
written. Sometimes the apps did not start via the ShellExecute on different
computers even with the same version of windows.
After applying the changes I mentioned, I never had an issue.
I am glad it's working for you.
Jamal
"D.J.W. van Kooten" wrote in message
news:6uhooaln4plf710eddsj9mjjp1634mm9c0@4ax.com...
On Tue, 23 Jun 2015 11:53:29 -0400, "Jamal Assaf"
<someone@example.com> wrote:
Hello Jamal,
You're my hero of the week!
Indeed:
>ShellExecute(NULL, String2Psz("open"), String2Psz("MyVulcanProgram.exe"),
>NULL, String2Psz(cPath), SW_SHOW)
solved the problem, I can see this from the log and it is confirmed by
the customer.
It really puzzles me how you knew this.
MSDN says:
SW_SHOW (5)
Activates the window and displays it in its current size and position.
SW_SHOWNORMAL (1)
Activates and displays a window. If the window is minimized or
maximized, Windows restores it to its original size and position. An
application should specify this flag when displaying the window for
the first time.
Almost every sample, also in this NG, routinely suggest to use
SHOW_SHOWNORMAL. Reading the above, you would expect this to use only
the first time. And then what? It's not really clear. But SW_SHOW
works the first time AND the next times.
Remains the puzzle why it works on some systems with SW_SHOWNORMAL and
not on others (even per user on the same RD) and especially the puzzle
how it could stop both the Vulcan and the VO program to create .txt
log files while the DBF read/writes remained working.
Anyhow, thank you so much for sharing this knowledge with me!
Dick
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread
ShellExecute works one time and then only again after re-entering the program D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-06-11 12:04 +0200
Re: ShellExecute works one time and then only again after re-entering the program "Marc Verkade [MITCon]" <marc@mitNOSPAMconDELETE.nl> - 2015-06-11 18:00 +0200
Re: ShellExecute works one time and then only again after re-entering the program D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-06-11 22:58 +0200
Re: ShellExecute works one time and then only again after re-entering the program D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-06-18 17:02 +0200
Re: ShellExecute works one time and then only again after re-entering the program Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2015-06-11 23:37 +0200
Re: ShellExecute works one time and then only again after re-entering the program D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-06-18 17:00 +0200
Re: ShellExecute works one time and then only again after re-entering the program sherlocksoftware@gmail.com - 2015-06-19 04:17 -0700
Re: ShellExecute works one time and then only again after re-entering the program "Jamal Assaf" <someone@example.com> - 2015-06-19 15:14 -0400
Re: ShellExecute works one time and then only again after re-entering the program D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-06-22 08:54 +0200
Re: ShellExecute works one time and then only again after re-entering the program "Jamal Assaf" <someone@example.com> - 2015-06-23 11:53 -0400
Re: ShellExecute works one time and then only again after re-entering the program D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-06-24 17:01 +0200
Re: ShellExecute works one time and then only again after re-entering the program D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-06-25 20:31 +0200
Re: ShellExecute works one time and then only again after re-entering the program Steve E <steven_emmett@yahoo.co.uk> - 2015-06-25 23:22 -0700
Re: ShellExecute works one time and then only again after re-entering the program D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2015-06-26 10:18 +0200
Re: ShellExecute works one time and then only again after re-entering the program Steve E <steven_emmett@yahoo.co.uk> - 2015-06-26 03:06 -0700
Re: ShellExecute works one time and then only again after re-entering the program "Jamal Assaf" <someone@example.com> - 2015-06-26 10:35 -0400
csiph-web