CPlusOOP
SiteMap
Advanced COM
Basic COM
Basic COM
«Prev
Next»
Com Fundamentals
Component Object Model
COM Specification
Terminology COM Objects
Com Clients And Servers
Com Method Property
COM Interface Properties
Interface Definition Language
Compiling IDL Files
Implementing COM Objects
iunknown Interface Navigation
Query Interface Guidelines
iunknown Reference Counting
Iunknown Interface
COM Type Library
Com Basics Conclusion
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
COM Client Server Interaction and Method Requirements - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
What is the basis of client-server interaction in COM?
Please select the best answer.
A.
Communication between the client and the COM server
B.
Communication between the client and a COM object's data
C.
Communication between the client and a COM object's interface methods
2.
What does local/remote transparency mean?
Please select the best answer.
A.
The client tells COM where to find the server. The location of the server is transparent to COM.
B.
The client accesses COM objects. The location of the server implementing those objects is transparent to the client.
C.
The COM server registers with all known clients. This process is transparent to the COM object.
3.
What are the binary and return value requirements of a COM method?
Please select all the correct answers.
A.
C/C++ calling conventions--i.e.,
__stdcall
.
B.
COM methods must return application-specific error codes as return values.
C.
Return HRESULT.
D.
First parameter to a method must be a pointer back to the interface that contains the method.