Re: Window and AllocConsole
Quote:
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.
Re: Window and AllocConsole
Quote:
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.
Re: Window and AllocConsole
Quote:
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?
Re: Window and AllocConsole
Quote:
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.
Re: Window and AllocConsole
Quote:
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.