Using Automation Objects with MFC

The MFC class COleDispatchDriver makes calling Automation objects much easier. Further, the Class Wizard can be used to create classes from type library files that derive from COleDispatchDriver and provide C++ classes through which the Automation properties and methods can be called. The Automation parameter data types passed by the VARIANT structure are mapped onto standard C++ data types. You can use these classes even if your application does not otherwise use MFC.

Generating these wrapper classes is very convenient, although for large Automation models the wrapper classes may increase the size of your application substantially. For example, the POOM object model adds around 29 KB to the application and also ...

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.