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.
BOOL IsResultExpected( );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CCmdTarget Overview, CCmdTarget Member Functions, Application Architecture Classes, CCmdTarget::EnableAutomation, CCmdTarget::GetIDispatch