before MFC app