0

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

Edited by mike_2000_17: Fixed formatting

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by mitrmkar
0

Obviously you don't have a class named CMyView , so you cannot use the provided example as is. Instead you could e.g. make the provided example a stand-alone function and use it as such, i.e. simply

BOOL GetPageSize(CSize &nRetVal)
{
    // rest of the example code here ...
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.