CSE775 - Distributed Objects
Lecture #8 - COM Types, Introduction to Apartments
Revised: 03 February 2008
Web Resources:
Code Project
Win32, COM, MFC
DevelopMentor
Windows Developer's Journal
Windows Forms
GotDotNet
C# Corner
IDL and WDSL
COM at MSDN
IDL Language
base MIDL types
OLE data types
IDL attributes
MIDL data types
MIDL Language Reference
conversion functions
Content:
In this lecture we concentrate on representing a variety of types used in COM development, then turn to an
introduction to COM Apartments, in preparation for the next lecture on Win32 threads.
-
Syllabus
Describes topics to be covered,
reading material for you to digest before coming to class, and due dates
for the assigned projects.
-
Project #1
- Discuss design issues with respect to shared data, program structure.
-
Review of In-Process Components:
-
IDL Presentation
Discusses the types most frequently used with COM.
-
Interfaces
Shows how to pass most common types of data through COM interfaces, e.g., basic types,
strings, pointers, and arrays.
-
COM API
-
COM Types
-
COM Apartments and Threading Models
-
COM Reuse Mechanisms
-
COM String References
http://devguy.com/fp/Tips/COM/bstr.htm
http://www.codeproject.com/string/bstrsproject1.asp
http://www.codeproject.com/cpp/easybstr.asp
http://www.codeguru.com/Cpp/Cpp/string/conversions/article.php/c5639/
http://www.ecs.syr.edu/faculty/fawcett/handouts/CSE775/Presentations/BruceMcKinneyPapers/COMstrings.htm
-
IDL Links
-
Lecture #5 folder
Contains a page of links to
presentations and code discussed in this class. The Lecture folders will occasionally
hold physical files of interest as well. Usually, however, all the materials
of interest to the class are in the presentations
and code folders. The contents of these folders will grow
as you progress through the course.