shell() in Win2000

new topic     » topic index » view thread      » older message » newer message

Ok, I am in quite a dilemna . . .

I was using shell() to launch an exe (Windows 98) that comes up in a DOS box
from my windows program because the behaviour was exactly what I wanted.
Using shell() launched the program, and only until it was finished would
control revert back to the windows program.  shell() would also
automatically close the console window when it was done.

But, using shell(), i.e., using the very same code on a 2000 machine would
do nothing.  So, I am assuming that shell() is not compatible with 2000 . .
. so, I thought I'd try using shellExecuteEx().

Using shellExecuteEx() works fine, but now code immediately following the
line executing the shellExecuteEx() is run, i.e., the program doesn't wait
for the program to finish its job.  I need the result of the program being
run through shellExecuteEx() before continuing in the euphoria program.
Also, shellExecuteEx() doesn't close the console window after its done . . .

In my search for an answer, I came up with some questions: As all of you
well know, shellExecuteEx() returns an HINSTANCE.  What is it and what do
you do with it?  Is this the answer?  I've looked in the WinAPI to see if I
could do something with this instance handler, but to no avail.  Also, how
does one determine what applications are currently running on a system?  If
one wanted to close one of these applications, how does one do it?

I'm using win32lib v0.55.1 . . .

Any suggestions!?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu