Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Console

Author
Message
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 10th May 2010 23:23 Edited at: 10th May 2010 23:55
Usually when starting out with C/C++, one would begin to write programs for the console. Inputting/outputting was easy as pie with cin and cout, so here's a way to use them to output to a console in a windows program.

Console.h


RedirectIOToConsole: http://www.halcyon.com/~ast/dload/guicon.htm

ClearScreen: http://www.cplusplus.com/forum/articles/10515/

Usage:


"A computer once beat me at chess, but it was no match for me at kick boxing."
Emo Philips
haliop
User Banned
Posted: 10th May 2010 23:25
very nice man! i will check it when i have the time.
ty.
helpfull programmer
15
Years of Service
User Offline
Joined: 30th Jul 2009
Location:
Posted: 10th May 2010 23:34
amazing?!?!?! lol... well done!
Freedom Fighters
15
Years of Service
User Offline
Joined: 2nd Nov 2009
Location:
Posted: 16th May 2010 03:22
sweet, im gonna try and make a example with it after exams. looks nice.

Problem Solution That Never Fails: "Build A Bridge And Get Over It"
Neomex
14
Years of Service
User Offline
Joined: 30th May 2010
Location:
Posted: 5th Jun 2010 00:43 Edited at: 5th Jun 2010 00:43
Looks awesome, but I got errors while trying to compile it:

Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 5th Jun 2010 00:59
http://forum.thegamecreators.com/?m=forum_view&t=154012&b=22&msg=1799284#m1799284

Also add libcmt and libcmtd to the "Ignore" list under [+]Linker

"A computer once beat me at chess, but it was no match for me at kick boxing."
Emo Philips
Neomex
14
Years of Service
User Offline
Joined: 30th May 2010
Location:
Posted: 5th Jun 2010 01:10 Edited at: 5th Jun 2010 01:12
Umm, still something is wrong:

(too long to paste into forum)
http://wklej.org/id/345608/

1015 error(s)
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 5th Jun 2010 01:33
Whoops take out libcmt from the list. Probably should have checked first .

"A computer once beat me at chess, but it was no match for me at kick boxing."
Emo Philips
Neomex
14
Years of Service
User Offline
Joined: 30th May 2010
Location:
Posted: 5th Jun 2010 13:15
Now works, thanks alot

Living for C++ programming!

Login to post a reply

Server time is: 2024-11-19 23:07:22
Your offset time is: 2024-11-19 23:07:22