The best thing do in this case is to make your application have a console in the first place. You can do this by changing the subsystem from WINDOWS to CONSOLE (see Project Properties\Configuration Properties\Linker\System\SubSystem).
If you whish to use AllocConsole then you may need to read this KB article. Just calling AllocConsole is not enough:
http://support.microsoft.com/kb/105305/en-us
|