Jump to content
  • Advertisement
Sign in to follow this  
sgdimitris

Stop the code in one project until closint an exe which is called for the first project

This topic is 2474 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello to all members!
I have a Windows Forms Application project and a Win32Project.
I want from my W.F.Application to press a "button" and call the Win32Project exe.
But I want to STOP the W.F.Application code of running, until the Win32Project exe closed.
How can I do that?
I used the
ShellExecute(NULL,L"open",cstr4,NULL,NULL,SW_SHOWMAXIMIZED)
to call the Win32Project exe.
Any help would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
If I understand you correctly, you want to let W.F waits until Win32Project exits?
Then you need some more Win API than ShellExecute

See here
http://stackoverflow.com/questions/42531/how-do-i-call-createprocess-in-c-to-launch-a-windows-executable

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!