Problem in getting the printers settings

Hi

I was trying the code written in the following URL

http://support.microsoft.com/kb/117565

to get the information about the page size

But when I try to run the program I am getting the following errors:-

`CMyView' has not been declared

`CSize' was not declared in this scope

`CMyView' has not been declared

`BOOL GetPageSize'

`BOOL GetPageSize' previously defined here

`CSize' was not declared in this scope

`nRetVal' was not declared in this scope


These all errors are due to the first line of code

BOOL CMyView::GetPageSize(CSize &nRetVal)

Is there anything I am missing

Kindly advice

Regards
Karan Gupta
closed account (z05DSL3A)
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

Good luck
Last edited on
Topic archived. No new replies allowed.