CPlusOOP
SiteMap
Advanced COM
Basic COM
ATL Development
«Prev
Next»
Com Fundamentals
Component Object Model
COM Specification
Terminology Com Objects
COM Method Property
COM Interface Properties
Interface Definition Language
Compiling IDL Files
Implementing COM Objects
iunknown Interface Navigation
iunknown Reference Counting
COM Type Library
COM Basics
COM Class Objects
iClassfactory Methods
iClassfactory Creates Objects
COM Servers
InOrocessServer Registers
InProcess Com Servers
dllCanUnloadNow Described
Creating COM Objects
COM Interfaces
Client Side Code
COM Basic Conclusion
In Process Com Server
Development Frameworks
Core ATL Classes
Generate ATL Process ComServer
Add COM Class
Examine ATL Code
ATL Project Files
Designing Data Structures
Designing Methods
Adding Structures Constants
Add readWrite Property
Add Read Only
Add Interface Methods
Add Application Data
Coding COM Methods
Add Phone Record
COM Server Conclusion
ATL COM objects - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
Every ATL-based COM object implemented within a server:
Please select the best answer.
A.
Has an object map entry
B.
Must have
obj
in its name
C.
Uses the same CLSID
2.
In ATL, COM object implementation classes:
Please select the best answer.
A.
Inherit from
CComObject
B.
Implement
IUnknown
C.
Multiply inherit from each interface they implement as well as
CComObjectRoot
and
CComCoClass
3.
In COM, inheriting from an interface means:
Please select the best answer.
A.
The derived class must implement all functions in the interface in any order.
B.
The derived class does not have to implement the interface functions because we inherit them from the base class.
C.
The derived class must implement all functions in the interface in
vtable
order.
4.
An ATL-based COM object implementation class must:
Please select the best answer.
A.
Implement
IUnknown
B.
Have a COM map that contains an entry for each COM interface it implements
C.
Have an object map for each method in its interfaces
Correct answers:
Your Score: 0
Submit
Quiz Explanation