i'm working on a project and i really want to know if c++ provides to print out colored text or not.
thx
matika 0 Newbie Poster
Recommended Answers
Jump to PostAs far as I know, this can be accomplished. Printing to a hardware printer is simply a level of abstraction that can be accomplished via printer drivers, etc. I did a quick Google search and came up with this ... I don't know if it will be of much help …
Jump to Postmmhmmm, those are all nice and good until you use vc6++ where you can only create console applications.
here are some api calls you can use instead.
hwnd_type { STD_INPUT_HANDLE, STD_OUTPUT_HANDLE, STD_ERROR_HANDLE}
GetStdHandle(hwnd_type)
SetConsoleCursorPosition (handle, cordinates)
SetConsoleTextAttribute(handle, color)** there a too many to list... so im …
All 6 Replies
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member
BountyX 7 Posting Whiz in Training
FireNet 64 Posting Whiz in Training
Fili 0 Light Poster
BinaryMayhem 2 Unverified User
Fili 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.