Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

-------- color output

Status
Not open for further replies.

DaniDak

Technical User
Mar 13, 2002
44
US
Does anyone know how to output data in color using VC++ 6.0.

Thank you
 
For what console or Windows apps? For console apps you generally have available textcolor(int). The available colors will probably be in conio.h. For Windows, use SetTextColor(HDC, COLORREF). The second parameter is a 32 bit value, I believe, and can be substituted with a call to the macro PALETTERGB(unsigned char, unsigned char, unsigned char)...hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top