Using Services
Services provide several important advantages for ActiveX designers:
- Designers require less code, because they can use the host's service implementations instead of writing new code to perform common tasks.
- Applications operate more efficiently. QueryService returns a pointer to a requested interface, instead of delegating method calls through the container.
- Designers can ensure compatibility with multiple hosts.
The following sections describe how to find and call services, and what the differences are between using services and using the QueryInterface method.