Results 1 to 5 of 5

Thread: shell execute problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    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....

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    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...

  3. #3
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    Can't you use the...
    RetVal = Shell("c:\myfile.exe",1)



  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    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

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width