PDA

Click to See Complete Forum and Search --> : shell execute problem


Inhumanoid
Nov 15th, 1999, 03:15 PM
Yesterday I posted this: http://www.vb-world.net/ubb/Forum1/HTML/010481.html

Serge's code works fine but the problem is that the program is totally inactive untill the executable is loaded completely...
this should not be the case because I want to display an animation in that period...

I was told this was because of the "Do Untill"-loop.
I deleted this loop and made a timer flash a picture (the whole time)to check if the halting of the program was gone... It was not; as soon as I shell-execute an exacutable the timer events halt untill the execuatble is loaded. When it is loaded the timer events resume.

So this is probably the problem: how can I/can I display an animation while I executable is being shell-executed

Hope someone can solve this one....

Inhumanoid
Nov 15th, 1999, 05:05 PM
In case my question is not clear:

Why does my program halt/pauze when it shell-executes another program ??

How can I stop it from halting ?

plz help...

CyberCarsten
Nov 15th, 1999, 06:02 PM
Can't you use the...
RetVal = Shell("c:\myfile.exe",1)

Inhumanoid
Nov 15th, 1999, 06:51 PM
RetVal = Shell("c:\myfile.exe",1) would be the same as
RetVal = Shell("c:\myfile.exe",vbNormalFocus).

In both cases the application is still halted for the time between executing and being activated (be it minimized, maximized focus, nofocus, hidden etc.)of the shel-executed program

Inhumanoid
Nov 15th, 1999, 07:10 PM
Would multithreading be an option here ?
If yes, how would I implement a multithread between two subs (one for shelling an app, the other a timer...