I have to include a function that have been given to me in a program to set text and background color. That's the function:
However I'm a noob and I don't know how to call it. I've tried TextColor(RED,BLACK) but compiler (dev-c++) gives me an error (to few arguments for TextColor).
void TextColor(int fontcolor,int backgroundcolor,HANDLE screen)
unsigned short color_attribute;
color_attribute = backgroundcolor;
color_attribute = _rotl(color_attribute,4) | fontcolor;
Can you help me?