January 10, 1997
Click a lesson link below to jump to the tutorial narrative for the associated code sample.
Directory/Sample | Lesson | Topic |
---|---|---|
APPUTIL | Lesson 0 | Win32 Basics: Win32 Application Utility Library |
READTUT | Lesson 1 | Win32 Basics: Tutorial Reader and Linking to APPUTIL |
EXESKEL | Lesson 2 | Win32 Basics: Win32 EXE Skeleton Application |
DLLSKEL | Lesson 3 | Win32 Basics: Win32 DLL Skeleton |
DLLUSER | Lesson 4 | Win32 Basics: EXE User of a DLL |
COMOBJ | Lesson 5 | COM Objects: Containment and Aggregation in a DLL |
COMUSER | Lesson 6 | COM Objects: Nested Aggregation in an EXE User |
REGISTER | Lesson 7 | COM Components: Component Object Registration |
DLLSERVE | Lesson 8 | COM Components: Component Object DLL Server |
DLLCLIEN | Lesson 9 | COM Components: Client Application of DLL Server |
LICSERVE | Lesson 10 | COM Components: DLL Licensed Server |
LICCLIEN | Lesson 11 | COM Components: Client Application of Licensed Server |
MARSHAL | Lesson 12 | COM Components: Custom Interface Standard Marshaling |
LOCSERVE | Lesson 13 | COM Components: Local Server |
LOCCLIEN | Lesson 14 | COM Components: Client Application of Local Server |
APTSERVE | Lesson 15 | COM Components: Local Server with Multiple Apartments |
APTCLIEN | Lesson 16 | COM Components: Client of Multiple Apartment Server |
REMCLIEN | Lesson 17 | COM Components: Distributed COM (DCOM) Remote Client |
FRESERVE | Lesson 18 | COM Components: Free-threaded Server |
FRECLIEN | Lesson 19 | COM Components: Client of Free-threaded Server |
CONSERVE | Lesson 20 | COM Components: Connectable Object Server |
CONCLIEN | Lesson 21 | COM Components: Client of Connectable Object Server |
STOSERVE | Lesson 22 | COM Components: Structured Storage Server |
STOCLIEN | Lesson 23 | COM Components: Client of Structured Storage Server |
INC | -- | Common include directory used by the code samples |
LIB | -- | Common library directory used by the code samples |
COM | -- | Main branch directory with TUTORIAL.EXE, MAKEALL.BAT, etc. |
Throughout the sample sequence a clear differentiation is maintained between client and server, with a separate lesson sample for each. Usually, each client/server pair covers an area of COM/ActiveX technology. Here is an overview of the technologies covered by the lessons.
Basic Win32 application programming is covered in the APPUTIL, READTUT, EXESKEL, DLLSKEL, and DLLUSER lessons. APPUTIL provides a utility framework for building Win32 applications. It also contains some tools needed for tutorial purposes. READTUT is a very simple EXE application that shows how to link to the APPUTIL static library and call utility functions in it. READTUT also shows how to invoke the ActiveX tutorial web page reader that is used throughout the sample series. EXESKEL shows a basic Win32 skeleton EXE application built using APPUTIL. DLLSKEL and DLLUSER simularly show a basic Win32 DLL (Dynamic Link Library) skeleton and how to access it from an EXE user application.
Basic COM object construction, custom interfaces, and techniques for coding their reuse using aggregation and containment are covered in COMOBJ and COMUSER.
Basic COM component construction, class factories, component object registration, and techniques for housing COM objects in COM component servers are covered in REGISTER, DLLSERVE, and DLLCLIEN.
COM component Licensing using IClassFactory2 is covered in LICSERVE and LICCLIEN.
Out-of-Process local servers and the standard marshaling of custom interfaces are covered in MARSHAL, LOCSERVE, and LOCCLIEN.
Multi-threaded apartment model server and client construction are covered in APTSERVE and APTCLIEN. Multiple single-threaded apartments are used.
DCOM (Distributed COM) with custom interfaces operating between client and server across machine boundaries is covered in REMCLIEN.
Free-threaded COM components and their access by free-threaded clients are covered in FRESERVE and FRECLIEN. The multi-threaded apartment is used.
Connectable COM object technology is covered in CONSERVE and CONCLIEN. Event source and sink construction is covered.
Structured storage using COM's compound file technology is covered in STOSERVE and STOCLIEN. A COM-based scribble drawing application is used.
© 1997 Microsoft Corporation