Article ID: 165605 - Last Review: August 18, 2005 - Revision: 1.2 PRB: Using MFC OLE Components with Transaction Server
This article was previously published under Q165605 On This PageSYMPTOMS
When registering and viewing a Microsoft Foundation Class (MFC) OLE
component with the Microsoft Transaction Server Explorer, the following
warning appears:
Some of the objects properties were missing or damaged.
This can occur if the registry entries associated with the item
are changed by some other program.
Damaged items must be deleted and re-created.
CAUSE
MFC 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.
RESOLUTION
To resolve this problem, register the interfaces. See the revised
DllRegisterServer code in the "More Information" section of this article.
STATUS
Microsoft has confirmed this to be a problem in Transaction Server version
1.0.
MORE INFORMATION
The 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 CodeREFERENCES
For additional information, please click the article numbers below
to view the articles in the Microsoft Knowledge Base:
154664
(http://support.microsoft.com/kb/154664/EN-US/
)
PRB: Dispatch Interface for Automation Object Must Be Registered
185174
(http://support.microsoft.com/kb/185174/EN-US/
)
INFO: Latest Version of Microsoft Transaction Server
APPLIES TO
| Other Resources Other Support Sites
CommunityArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

Back to the top