CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Location
    LA, USA
    Posts
    23

    How to halt execution of VB code while a particular routine is executing?

    In my program, I shell out to DOS to execute a particular batch file using:

    hinstance% = Shell("DYNAMIC.BAT", 1)

    I want to halt the further execution of the VB code until a particular routine is finished. How can I do this?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: How to halt execution of VB code while a particular routine is executing?

    you should start the app using CreateProcess API.
    To wait until the started app ends, use the WaitForSingleObject API.


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

Featured