|
-
July 28th, 2010, 06:46 PM
#1
Window and AllocConsole
I am currently writing an application that opens a debug window during the runtime. With the application, then window would be opened using the command AllocConsole. The only issue is if the user closes the debug window, the entire application closes. Is there any way I can create a console that will not cause the Win32 API window to close?
-
July 28th, 2010, 08:02 PM
#2
Re: Window and AllocConsole
 Originally Posted by iWizardPro
Is there any way I can create a console that will not cause the Win32 API window to close?
Not that I'm aware of.
-
July 29th, 2010, 07:11 PM
#3
Re: Window and AllocConsole
 Originally Posted by iWizardPro
Is there any way I can create a console that will not cause the Win32 API window to close?
You need to open it in a separate process. Use CreateProcess for that.
-
July 29th, 2010, 08:29 PM
#4
Re: Window and AllocConsole
 Originally Posted by ahmd
You need to open it in a separate process. Use CreateProcess for that.
How would this work for what the OP is trying to do?
-
July 30th, 2010, 12:47 AM
#5
Re: Window and AllocConsole
 Originally Posted by Arjay
How would this work for what the OP is trying to do?
The OP writes the code that is output into the console window in a separate console project and starts it using CreateProcess. He/she may use Interprocess Communication or a simple command line parameters call to convey the information into this console application.
-
July 30th, 2010, 03:24 PM
#6
Re: Window and AllocConsole
 Originally Posted by ahmd
The OP writes the code that is output into the console window in a separate console project and starts it using CreateProcess. He/she may use Interprocess Communication or a simple command line parameters call to convey the information into this console application.
Thanks for the clarification. The original response implied that CreateProcess could be used as a direct replacement for AllocConsole as opposed to having to create a separate application using interprocess communication.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|