I need to call the CDocument::GetPathName() from my CEditView class. How do I do this? Everytime I try this the compiler gives me an error:

illegal call of non-static member function

I am trying to do it like this:

CString strReturn;

strReturn = CDocument::GetPathName();

What is the function GetPathName? Protected? How do I use this function from another class? Thanks for your help.

Todd
[email protected]