CCmdTarget::IsResultExpected

This method determines whether a client expects a return value from its call to an Automation method. The COM interface supplies information to MFC about whether the client is using or ignoring the result of a method 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 method before computing the return value.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL IsResultExpected( );

See Also

CCmdTarget::EnableAutomation, CCmdTarget::GetIDispatch