why can't i do this?
(this is in 2 for loops and it makes about 100 pixels that color in the shape of a box)Code:COLORREF pixColor2 = (10,50,100); cout <<pixColor2 << endl; clr=SetPixel(hdcScrn,col,row,pixColor2);
when i run it it sets the pixel at pos (col,row) to the color-value of 100. it is always the 3rd value in the (R,G,B) above. i know that because pixColor2 is printed out.
also is there a way i can assign the value of pixColor2 to a value in an array? how would i declare that array?