   Using a console along side a gui for debugging
  I want to launch a console to output debugging messages from my DirectX applications, how would I got about doing this.I'm writing a Logger class that can optionally output errors to  a console and/or an output file, but I can't find any info on launching a console with a GUI app (kind of like how blender does on windows).   
  What environment are you using to compile?  I'm using Code::Blocks and in that all I have to do is go to :Project -> Build TargetsThen I select a build and from the Type dropdown I make sure it says "Console". (I believe you can spawn windows from a console app.)  Not sure what that translates to in the resource/compiler/linker steps though.   ;  One way to do this in Windows is to use the AllocConsole function: http://msdn.microsoft.com/en-us/library/ms681944%28VS.85%29.aspx   ;  I guess there's also  main() vs WinMain():http://www.gamedev.net/community/forums/topic.asp?topic_id=522735   ;  Thanks, AllocConsole() is exactly what I was looking for.   