A COM class ("coclass") is a concrete implementation of one or more interfaces.
Interfaces are closely resembles to abstruct classes in C++.
Coclass in a COM server can implement one or more interfaces. Multiple inheritance is used to implement multiple interfaces in same C++ class.
Client has to select the desired interface for using an object of the co-class.
Each interface will have different GUID or IID and human readable progid. Client should provide CLSID for the Co_Class and interface ID or IID for getting an instance of the co-class from the server.
A server can again have one or more co-classes implemented within itself.
COM Class/coclass example
IE com srver implements multiple co-classes. InternetExplorer is one well known co-class inside internet explorer COM server. This coclass implements interfaces like IWebBrowser, IWebBrowser2, IWebBrowserApp.
It also handles event interfaces like DWebBrowserEvents and DWebBrowserEvents2.
uuid(0002DF01-0000-0000-C000-000000000046), // CLSID_InternetExplorer
helpstring("Internet Explorer Application."),
[default] interface IWebBrowser2;
[default, source] dispinterface DWebBrowserEvents2;
[source] dispinterface DWebBrowserEvents;
You have viewed 1 page out of 66. Your COM/DCOM learning is 0.00% complete. Login to check your learning progress.
Similar topics related to this section
COM DCOM Interview Questions and Answers :: ALL Interview .com
COM DCOM - COM DCOM Interview Questions
COM interview questions | TechInterviews
COM Interview Questions - CodeProject
Com Dcom Interview Questions - Com and Dcom in Asp Net
ATL Interview Questions and Answers :: ALL Interview .com
ActiveX Interview Questions and Answers :: ALL Interview .com
| #1 webmaster Mon 28 Apr/2014 22:49:25(GMT) || 0 || 0|
We are pleased to inform you that a forum/blog has been incorporated with www.mybestnotes.co.in. You are welcomed to add your comments, requests, codes, solutions and feedback to it. Please login(if already a member) or signup(for free) to avail to this facility.
Your message goes here: