Sunday, July 12, 2009

What is the graphic header file in c++(visual studio)?

i want to use graphical function in c++(not turbo).


in visual studio this header does not exist :%26lt;graphics.h%26gt;

What is the graphic header file in c++(visual studio)?
If i understand you correctly then in your case you are interested in utilizing the Win32 APIs...And in that case just including the "windows.h" header will give you access to most of them...Refer to your MSDN for all the graphic functions....For example:





hbrOld = (HBRUSH) SelectObject(hdcMem,(HGDIOBJ) hBrush);


FillRect(hdcMem,%26amp;rect,hBrush);


SelectObject(hdcMem,(HGDIOBJ) hbrOld);


No comments:

Post a Comment