Hello again,
I was recently going thru some source code to try and pinpoint how to change the text colour in dos, anyways so this is what i found...
Code:
#include <stdio.h>
#include <windows.h> // <---*THIS IS THE REQUIRED HEADER FILE FOR IT TOO WORK
int main()
{
HANDLE h = GetStdHandle ( STD_OUTPUT_HANDLE );
WORD wOldColorAttrs;
CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
GetConsoleScreenBufferInfo(h, &csbiInfo);
wOldColorAttrs = csbiInfo.wAttributes;
SetConsoleTextAttribute ( h, FOREGROUND_RED | FOREGROUND_INTENSITY ); //Set the new color information
printf("TEXT"); //*THESE LINES PRINT THE TEXT
-Curtosy Author of 'Adventures Of You'
Iv'e got a fair idea of whas going on here, but if someone could explain to me the hows and why's of this code that would be awsome.