-
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....
-
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...
-
Can't you use the...
RetVal = Shell("c:\myfile.exe",1)
-
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
-
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...