The article that you are using is entitled How To Getting the Current Printer Settings in MFC. From you past posts, your are using Dev-C++. I am pretty sure that you can not do MFC (Microsoft Foundation Class Library) programming with Dev-C++ you will only be able to do Windows API.
For printing with Windows API see:
http://msdn.microsoft.com/en-us/library/ms535673(VS.85).aspx