An HRESULT of 0x80010005 error occurs when you try to call methods on a COM server in Visual C++ (179692)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2b
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2b
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q179692 SUMMARY When calling methods on a COM server from within OnDraw()
or a WM_PAINT message handler of an MFC client application, you may receive an
HRESULT of 0x80010005 (RPC_E_CANTCALLOUT_INEXTERNALCALL - it is illegal to call
out while inside message filter) as the return value of a COM call to a server.REFERENCES "Inside OLE", second edition, by Kraig Brockschmidt,
Chapter 6, "Local/Remote Transparency," published by Microsoft Press.
Visual C++ Books Online and the MFC source code for the functions mentioned in
this article.
(c) Microsoft Corporation 1997, All Rights Reserved.
Contributions by Jaganathan Thangavelu, Microsoft Corporation.
Modification Type: | Major | Last Reviewed: | 6/2/2005 |
---|
Keywords: | kbtshoot kbprb kberrmsg kbArchitecture kbcode kbContainer KB179692 kbAudDeveloper |
---|
|