CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1

    Modal application

    I know you can in dos programs call an
    application with system() and other functions and
    it will block your current program, but I would
    like to know how to do this with a Windows
    application.

    I need to start a dos program and block the current program until the dos program is finished to be able

  2. #2
    Join Date
    May 1999
    Posts
    24

    Re: Modal application

    If you run your program using CreateProcess function, you'll get ProcessID.

    Then call function WaitForSingleObject(ProcessID, INFINITE)

    Maybe, I'm wrong.

    Thanks,
    Ilgar Mashayev

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