Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6787405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:21:43+00:00 2026-05-26T17:21:43+00:00

I am using main.exe for my program in C++, which then calls other executables

  • 0

I am using main.exe for my program in C++, which then calls other executables in some situations.

How do I make an exe pause until another exe is executed?

Example:

I have an exe which creates dialog boxes for different situations (error, invalid arg, etc). Sometimes I might take an arg from the user & sometimes I might not.
So, until I take the arg from user how do I make my main.exe pause? Also, I want the arg in another exe.

So should I use new for storing the arg dynamically & pass pointers to that memory location in whichever exe I need the arg? By doing this am I doing memory leak? I will use delete after my need of that arg is over.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:21:43+00:00Added an answer on May 26, 2026 at 5:21 pm

    To do this on Windows you need to spawn your process with CreateProcess() then wait on the handle that is returned in the PROCESS_INFORMATION structure using WaitForSingleObject.

    Just ensure that the CreateProcess call succeeds. Any parameters can be passed via the command line or by using shared memory or a named pipe, see this for an example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm modifying a java program which was written in 2004 using javaw.exe from J2re1.4.2_03.
I'm using an error handler on my main calling procedure and letting the other
Using ExtJs. I'm trying to design a main which is divided into three sub
I am using Cocos2D for my main framework. In some cases, I want Cocos2D
I release a single executable (.EXE) for a desktop program using Delphi 2009. I
I have a C# console program which main functions should let a user grep
I've got a c# program which is using a c++/cli managed dll. The dll
We have two applications. Main.exe - which is the main application being updated Update.exe
I am using main form and child forms. If I open 2nd child form
My main solution is using code from a utility class library, that I wrote

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.