The information in this article applies to:
SYMPTOMSWhen registering and viewing a Microsoft Foundation Class (MFC) OLE component with the Microsoft Transaction Server Explorer, the following warning appears:
CAUSEMFC inproc servers do not register their interfaces in the interface section of the registry. When they are configured to run in a Microsoft Transaction Server package, the interfaces must be registered so that COM can marshal the interfaces or use OLEAUT32. Because the information is not in the registry, you receive an E_NOINTERFACE error, 80004002. RESOLUTIONTo resolve this problem, register the interfaces. See the revised DllRegisterServer code in the "More Information" section of this article. STATUSMicrosoft has confirmed this to be a problem in Transaction Server version 1.0. MORE INFORMATIONThe following code is a revised DllRegisterServer from an MFC server that should register the interface of an automation object. The interface is registered by the call to RegisterTypeLib, as long as the interface is described by the type library. Sample Code
REFERENCESFor additional information, please click the article number below to view the article in the Microsoft Knowledge Base: Q154664 Dispatch Interface for Automation Object Must Be Registered Additional query words: CCmdTarget
Keywords : kbprg kbMFC kbMTS kbMTS100 kbVC500 kbGrpCom |
Last Reviewed: October 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |