AFXGetApp returns a CWINAPP object pointer, which is the object defined in the c ?? app.cpp in MFC. If you need to call a member function of this object, you can use the AFXGetApp () function.