66 Exam and interview questions on COM/DCOM/ActiveX for developers/learners. Click on the link to get the detailed explanations. One you visit any answer you can navigate through next and previous link to jump from one answer to another. You can also select index to come back to this index page. Please provide us the rating and feedbacks of our questions and answers.
Topic Discussed: OLE, COM, C++ exported class, interface based
programming, IDL, ODL, COM class, QueryInterface(),
AddRef() and Release() function? HRESULT, wrapper class,
BSTR, factory class, IClassFactory, CreateInstance(),
LockServer(), entry and exit point, self-registration
and unregistration, CLSID, GUID, UUID, APPID, InProc (In
Process) and Out-Of-Process, proxy/stub scheleton,
help/guide line string, [in], [out], [in,out] and
[out,retval], co-class, smart pointer, Marshalling,
TypeLibrary, IUnknown, IDispatch, GetIDsofName(),
Invoke(), Automation, SAFE ARRAY, enum types, callback,
connectable object, Sink object, Apartment, STA, MTA,
Single and Multi-Threaded Apartment, ActiveX, IEnumXXX,
in-bound and out-bound interface, out-of process,
SINGLEUSE, MULTIUSE, MULTI_SEPARATE, SUSPENDED,
SURROGATE, COM aggrigation.
Questions and answers
- What is Object Linking and Embedding?
- What is Component Object Model?
- What are the advantages of using COM object over using C++ exported class?
- What are the advantages of interface based programming?
- What is Interface Definition Language or IDL?
- What is Object Definition Language?
- How can I define a Interface?
- What is the base class of all COM class? Define its prototype.
- What is the utility of QueryInterface() function in IUnknown interface?
- What is the utility of AddRef() and Release() function?
- Does AddRef() is called by client?
- Who allocates memory for a COM object and where its construction get called?
- What is HRESULT? Why all function is COM returns HRESULT? How do we come to know the function returns a success or failure? If failure what is the reson behind? How function returns a logical value?
- What is a wrapper class?
- How can I implement a wrapper class?
- What is BSTR? How it differs from an array of unicode wchar_t?
- What is a factory class?
- What is the definition of a IClassFactory interface?
- What is the utility of CreateInstance() function in IClassFactory?
- What is the utility of LockServer()?
- What are the entry and exit point routine of COM DLL module?
- How a COM DLL can provide self-registration and deregistration?
- What is CLSID, GUID, UUID, APPID ? How it is determined?
- What is InProc (In Process) and Out-Of-Process COM server?
- Write steps to create a com client?
- How do I define a method in an interface using IDL?
- What is the difference between a COM server written solely in C++ (no IDL) and using C++ and IDL?
- What are the output of MIDL compilation of an IDL file?
- What is proxy/stub scheleton in COM client and server programming?
- How can I add some help/guide line string in the definition of a method to help client to understand the functionality of the method?
- What is [in], [out], [in,out] and [out,retval] parameters?
- Why out parameters are always pointer to pointer?
- Who frees OUT parameters?
- How BSTRs are allocated and deallocated?
- How can I convert ASCII string to BSTR using ATL framework and Win32 APIs?
- What is a co-class in a COM server?
- What is smart pointer? What is the advantages of using it? How can I generate smart pointer classes from a COM server? What are the file names smart pointers are defined and where those are implemented?
- What is Marshalling in COM?
- What is TypeLibrary?
- How can I write an Interface that supports type info?
- What is the definition of IDispatch?
- How IDispatch supports VB, JAVA, script enabled object?
- What is ID binding? What is the utility of GetIDsofName() function in IDispatch()?
- How Invoke() method is called using Automation?
- What is Automation in COM?
- What is variant in Automation?
- How arrays are implemented in COM/Automation?
- How SAFE ARRAY differs from normal array?
- How enum types are supported in COM?
- What is a callback function in COM?
- How callback function are implemented in COM?
- What is connectable object in COM? How to implement callback event using connection point and what is the advantage?
- What is a Sink object in COM?
- What is an COM Apartment?
- What is Single Threaded Apartment or STA?
- What is Multi-Threaded Apartment or MTA? What is the basic difference between MTA enabled and STA com server code?
- What is an ActiveX object?
- What is IEnumXXX interface and how it is used?
- How an array of fixed length data are passed in method?
- Distinguish between an in-bound and out-bound interface?
- What is a co-class in IDL? What is a default co-class in VB?
- What is the difference between a coclass and Interface in IDL?
- What is the easiest way to register a type library programatically?
- How a out-of process COM EXE register itself to Service Control Manager(SCM)?
- What is the meaning of SINGLEUSE, MULTIUSE, MULTI_SEPARATE, SUSPENDED, SURROGATE in COM Exe?
- What is COM aggrigation?
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