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 ...
Get Windows® CE 3.0 Application Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.