Making standard console appear in allegro

allegro, c++, console

Solution

Two ways:

- Create the application as a console application

Use the Win32 API to allocate and attach a console when needed:

- Creation of a Console

- Attaching to a Console

- Closing a Console

Problem

When I run allegro program there isnt standard text console. How can I make it appear, so I can use cout and cin then? Im using Dev-Cpp and allegro 4.2.1.

Original source