News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Handle function- noob

Started by Bughi, February 14, 2011, 11:29:27 AM

Previous topic - Next topic

Bughi

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.


stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]