Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Bughi on February 14, 2011, 11:29:27 am

Title: Handle function- noob
Post by: Bughi on February 14, 2011, 11:29:27 am
Hello everybody, i am a noob programer and i was looking over a program code and came up some things that i couldn't figure out what exacly do they do. The code is:

int SetColor(int color)
{
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    SetConsoleTextAttribute(hConsole, color);
}

and my question is about that 'HANDLE' and 'GetStdHanle()'.

i would appreciate if someone could post a link with functions in C::B.

Thank you for youre time.

 
Title: Re: Handle function- noob
Post by: stahta01 on February 14, 2011, 02:02:05 pm
Read all the FAQs; read the forum rules!!
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F

Tim S.