Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Wagner Schalch (wagner.schalchTRANSPORT.ALSTOM.COM)
Date: Wed Nov 10 2004 - 12:25:23 CST
First I would like to present my scenario: I have on IDL file with
just a declaration of a interface (let's call it IStandard). I have two
ATL EXE objects (let's call them Object1 and Object2) that import the IDL
file and implement only the IStandard interface (they don't have any other
interface). I have a MFC application that performs the role of the client
of Object1 and Object2.
Both Object1 and Object2 are registered in the system and the MFC
application created the objects just fine (CoCreateInstance ok).
When I unregister last registered object, MFC application fails to
create the remaining registered one, returning E_NOINTERFACE.
The weird thing is the following: When I register Object1, the
IStandard interface is registered pointing to Object1's TypeLibrary. Then
when I register the Object2, the IStandard interface points now to the Object2's TypeLibrary. So when I unregister this last object, the
registration from IStandard interface disapears from the Windows'
Finally, my problem is:
Can I really use a single IDL file to describe a common interface among
objects and import it in each one of them?
Thanks for the help,
CONFIDENTIALITY : This e-mail and any attachments are confidential and
may be privileged. If you are not a named recipient, please notify the
sender immediately and do not disclose the contents to another person, use
it for any purpose or store or copy the information in any medium.
Users Guide http://discuss.microsoft.com/archives/mailfaq.html
contains important info. Save time, search the archives at
To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM