Author Topic: Handle function- noob  (Read 3230 times)

Bughi

  • Guest
Handle function- noob
« 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.

 

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7787
    • My Best Post
Re: Handle function- noob
« Reply #1 on: February 14, 2011, 02:02:05 pm »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org