I tried using
cout << "Hello";
but this does not print anything.
Could be that you didn't RTFM!
It is probably due to the fact that you are compiling a windows app and not a console app. Maybe?
I'ts like saying 'I tried building a WOODEN box with PLASTIC parts!'
I didn't pose the question correctly, sorry about that. I don't want to create a console app, but I want to create a normal allegro app and print out to the output window of Visual Studio (not the windows console). Is that possible?
Try ATLTRACE(), it works like printf.
Look up the definition of OutputDebugString function in MSDN.
I always wondered why Microsoft IDEs don't capture stdout and stderr like all other environments.
But what am I saying...you can't expect otherwise from the company that introduced WinMain.
Thanks!
I also found an alternative:
freopen("file.txt", "w", stdout);
This will redirect all standard output to the file "file.txt". So every time you make a cout call, the output goes to the file. Each subsequent call appends to the file.
... and if you install some unix tools on your windows you can watch the file change in realtime with #tail -f
some unix tools
What tools would that be? Sounds interesting.
I think it was msys from mingw homepage. Either that or something that came with KDE4-windows alpha packages.
Thanks. Will check this out.