hCon
hCon

Reputation: 233

Creating a console window from a WinAPI window?

Well, I have a project to do and would like some help. My purpose for the project is to create a console window when the user presses the "Start" button on a WinAPI window. I don't want the window to show upon startup. What do I need to put in the WM_COMMAND case to create a console window when the "Start" button is pressed?

I'm using WinAPI (C++) & Code::Blocks with MinGW.

Upvotes: 2

Views: 420

Answers (1)

Cheers and hth. - Alf
Cheers and hth. - Alf

Reputation: 145269

AllocConsole.

It is important to master the art of reading the documentation.

Browse around in MSDN Library to get familiar with it.

Try to find things, e.g., I suggest try to find WScript.Echo.

For example.

Upvotes: 2

Related Questions