I was wandering how to code to open up a new window or console while already programming in console. In other words... After the code is run, make it open up the main console window, and then other windows after it and have specific code run in each separate window...
Could anyone help me on achieving this?
Simple answer is that you can't. If you are using console applications, you can only have one window - there is a function to create a console window, AllocConsole(), but the description of it says:
You have to use the Windows application mode if you want to use multiple windows with one application.
Originally Posted by Microsoft
You could spawn a child process with inherited STDOUT, STDERR and STDIN streams (over a pipe).
Or, simply communicate over pipes, process to process, rather than having inherited handles.
hmmm... ok, how would i do it with application mode to create multiple windows?