O'Reilly logo

Windows® CE 3.0 Application Programming by Marshall Brain, Nick Grattan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using COM Components

This section shows how to use COM interfaces by means of the standard COM functions and techniques. These techniques create COM objects and manage interfaces using standard COM functions (such as CoCreateInstance) and interface functions (such as IUnknown's AddRef, Release, and QueryInterface functions). These techniques are the easiest to understand; however, memory leaks can easily be introduced if, for example, calls to Release are omitted. In the next section smart pointers are described that are initially more complex but eventually lead to easier and safer programming.

Initializing and Uninitializing COM

The COM library should be initialized before any COM functions or objects areused. In Windows CE COM initialization ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required