By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

Color in c++

P: n/a
Anybody know how put color in c++, in platform win32. thank you.
Jul 22 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
> Anybody know how put color in c++, in platform win32. thank you.

OT here. See comp.os.ms-windows.programmer.win32 e.g.
Tip:
google for "GDI windows"

SetPixel(HDC, LONG x, LONG Y, COLORREF col);

HTH,

--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com
Jul 22 '05 #2

P: n/a
Thiago_brazilian wrote:
Anybody know how put color in c++, in platform win32. thank you.


Many modern editors support syntax highlighting... Emacs, vim, kate,
MSVC, joe, C++ Builder, JEdit, PFE, textpad, code-genie... Take your pick.

Jacques.
P.S. Read the FAQ.
Jul 22 '05 #3

P: n/a
Thiago_brazilian wrote:
Anybody know how put color in c++, in platform win32. thank you.


Move the cursor between the "c" and the first "+" or between the two
"+"s and (with insert enabled in your editor) type "color".

Seriously, your question is too vague to be answerable and is off topic
for this newsgroup.
Jul 22 '05 #4

P: n/a
"Thiago_brazilian" <th*************@hotmail.com> wrote in message
news:f8**************************@posting.google.c om...
Anybody know how put color in c++, in platform win32. thank you.


Hire 15 cheer-leaders.

Give me a C...give me an o....give me...oh...wrong newsgroup.

TH
Jul 22 '05 #5

P: n/a
"John Smith" <s@b.com> wrote
"Thiago_brazilian" <th*************@hotmail.com> wrote
Anybody know how put color in c++, in platform win32. thank you.


Hire 15 cheer-leaders.


Now, now... we mustn't treat them as objects.

Claudio Puviani
Jul 22 '05 #6

P: n/a
In message <M2**********************@news4.srv.hcvlny.cv.net> , Claudio
Puviani <pu*****@hotmail.com> writes
"John Smith" <s@b.com> wrote
"Thiago_brazilian" <th*************@hotmail.com> wrote
> Anybody know how put color in c++, in platform win32. thank you.


Hire 15 cheer-leaders.


Now, now... we mustn't treat them as objects.


Why not?

for_each(cheerleaders.begin(), cheerleaders.end(),
mem_fun_ref(&CheerLeader::Cheer));
--
Richard Herring
Jul 22 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.