Windows & Consoles..

Started by
1 comment, last by gan 16 years, 6 months ago
How do I setup my app so that I can have both a window and console window present at the same time?
Advertisement
There are two ways. First, normal console programs are allowed to create windows, so you can simply compile your program for console and the problem's solved. Alternatively, you can call AllocConsole from a nonconsole program to add a console.
Quote:Original post by ArchangelMorph
How do I setup my app so that I can have both a window and console window present at the same time?


The way i know is in .NET (especially in C#/VB). Create a console application, write some code, then right-click your project, select "Properties">"Common Properties">"General">"Output Type", select either "class library" or "console application"

This topic is closed to new replies.

Advertisement