Sun Microsystems, Inc.
spacer spacer
spacer   Sun Educational Services  
spacer
black dot
  black fade
spacer
  Course Catalog
logo

COM Fundamentals I

( WT-1190-180 )


     Course DescriptionBack To Top

Course Offered in Partnership With DigitalThink

COM Fundamentals I provides programmers with an introduction to COM's architecture, components, and interfaces. It also provides an introduction to how to create COM software objects in Visual C++. Students will explore the COM architecture, components, and interfaces through the course project, a basic in-process COM server and client.

This course requires Microsoft Visual C++ 5.0 or 6.0. It also requires a computer running Windows, Macintosh, or UNIX. To complete the exercises, however, you must have access to a computer running Windows 95/98/NT.

eMentoring Services are included with this course.

  • Course length: 10 hours

  • Course details
        id:      WT-1190-180
        subscription duration:  180 days
        list price:  $  450.00


     
         Languages Offered Back To Top

    This course is currently available in English only.

     
         Who Can Benefit Back To Top

    Programmers

     
         Prerequisites Back To Top

    To succeed fully in this course, students should be able to:

  • Demonstrate a solid understanding of the following C++ concepts: classes and structures, constructors, inheritance and multiple inheritance, virtual functions, pure virtual functions
  • Demonstrate experience developing Windows applications in C++ using the Win32 API
  • Demonstrate completion of Win32 Programming Bundle, Win32 API Fundamentals I, Win32 API Fundamentals II, or equivalent experience
  • Use Microsoft Visual C++ 6.0 or 5.0
  •  
         Skills Gained Back To Top

    Upon completion of this course, you should be able to:

  • Describe the Component Object Model (COM servers, objects, and interfaces)
  • Use basic COM programming technology, including interface pointers, IUnknown interface navigation, IUnknown reference counting, IClassFactory, the interface definition language (IDL), Microsoft IDL compiler (MIDL), and the Active Template library
  • Understand and use type libraries as part of the COM development process
  • Develop source code for basic in-process COM objects/server and COM client using the ActiveX Template Library.
  •  
         Related Courses Back To Top

  • After: COM Fundamentals II
  •  
         Course Content Back To Top



    Module 1: Course introduction Back To Top

  • Course introduction
  • Prerequisites
  • What you need
  • What to expect
  • Meet your tutor
  • Meet your instructor
  • Course project


  • Module 2: Component Object Model basics, part 1 Back To Top

  • Component Object Model basics, part 1
  • The COM specification
  • COM terminology and objects
  • COM clients and servers
  • COM method properties
  • COM interface properties
  • Interface definition language--IDL
  • MIDL: Compiling IDL files
  • Implementing COM objects
  • IUnknown and interface navigation
  • QueryInterface guidelines
  • IUnknown reference counting
  • The client's view of IUnknown
  • Type libraries
  • Module wrap-up


  • Module 3: Component Object Model basics, part 2 Back To Top

  • Component Object Model basics, part 2
  • COM classes, class objects, and class factories
  • IClassFactory methods
  • How IClassFactory creates objects
  • COM servers
  • In-process COM servers: Registering and unregistering COM objects
  • In-process COM servers and DllGetClassObject
  • In-process COM servers: DllCanUnloadNow
  • COM clients: Creating COM objects
  • COM clients: Working with COM objects and interfaces
  • COM clients: Coding a client
  • Module wrap-up


  • Module 4: Using ATL to build an in-process COM server Back To Top

  • Using ATL to build an in-process COM server
  • Development frameworks
  • Core ATL classes
  • Generating an in-process COM server
  • Adding a COM class
  • Examining ATL code
  • ATL project files
  • Designing application data structures and properties
  • Designing methods
  • Adding structures and constants
  • Adding a read-write property
  • Adding read-only properties
  • Adding methods
  • Adding application data
  • Coding COM methods: 1
  • Coding COM methods: 2
  • Module wrap-up


  • Module 5: Developing a COM client Back To Top

  • Developing a COM client
  • COM client concepts: 1
  • COM client code concepts: 2
  • Smart pointers
  • ATL's smart pointers
  • Initializing a COM client
  • Making COM calls: 1
  • Making COM calls: 2
  • Making COM calls: 3
  • Module wrap-up


  • Module 6: Course wrap-up Back To Top

  • Course wrap-up
  • Where do you go from here?
  • Help us help you learn!

  • Terms of UsePrivacy PolicyFeedback Copyright 1994-2002 Sun Microsystems, Inc.