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

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 ...
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.