CCmdTarget::IsResultExpected

This member function determines whether a client expects a return value from its call to an automation function. The COM interface supplies information to MFC about whether the client is using or ignoring the result of a function call, and MFC in turn uses this information to determine the result of a call to IsResultExpected. If production of a return value is time- or resource-intensive, you can increase efficiency by calling this function before computing the return value.

Syntax

BOOL IsResultExpected( );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CCmdTarget Overview, CCmdTarget Member Functions, Application Architecture Classes, CCmdTarget::EnableAutomation, CCmdTarget::GetIDispatch