CPlusOOP
SiteMap
Advanced COM
Basic COM
Containment Delegation
«Prev
Next»
Com Fundamentals
Reusability Containment Delegation
Cplus Classes Integrate Objects
ComComponents Integrate Application
Com Component Advantages
Reusability SourceCode Mechanism
Reusability Components
Com Reusability Mechanisms
ComContainment Delegation Concepts
Containment Delegation Issues
Reusability ContainmentDelegation Conclusion
Containment Delegation
COM Aggregation
COM Aggregation
Aggregation Key Points
Interface Navigation
Reference Counting
Aggregation Guidelines
Inner Objects
Outer Objects
iUnknown Information Exchange
Aggregation Summary
Reusability Aggregation
Integration of COM Client and Objects - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
COM clients integrate with
Please select the best answer.
A.
COM servers at development time
B.
COM servers at runtime
C.
COM objects at development time
D.
COM objects at runtime
2.
During development, COM clients need
Please select all the correct answers.
A.
Include files or a type library that describes an object's CLSID and the IIDs of the object's interfaces
B.
Include files or a type library that describes the
vtable
layout of an object's interfaces
C.
An include file that describes the C++ classes the server uses to implement a COM object and its interfaces
D.
An include file that contains the full path to the location of the server
3.
During development, C++-based COM clients
Please select the best answer.
A.
Need a library from the COM server to link to
B.
Need the C++ class declarations used by the COM server
C.
Need to know the public methods implemented by the server
D.
Need a
vtable
specification that describes the interfaces in the object they want to use
4.
At runtime, a COM client
Please select the best answer.
A.
Calls
CoCreateInstance
or
CoGetClassObject
, followed by a call to
IClassFactory::CreateInstance
to load a specific COM server
B.
Calls
CoCreateInstance
or
CoGetClassObject
, followed by a call to
IClassFactory::CreateInstance
to instantiate a COM object and get an interface pointer into the COM object
C.
Calls COM library function
CreateObject
to instantiate a COM object and get an interface pointer into the COM object
D.
Calls COM library function
LoadCOMServer
to load a COM server