//You only need to use the scope resolution operator :: to qualify the method // with the name of the class that exposes it: CString appPath = CAppPath::GetAppPath();