Re: Suspending a program in Win32Lib.

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

William Heimbigner wrote:
> 
> button_onClick(int self, int event, seq params)
>     Execute_Some_Program()
>     while program_is_still_running do
>         doEvents(0)
>     end while
>     restart(0)
> end procedure
> 
> Any ideas on how to do 'program_is_still_running' using ShellExecute and
> ShellExecuteEx
> calls?

Use a flag file.

while flagFileExists do
   doEvents(0)
end while

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu