Using Services
Services provide several important advantages for ActiveX designers:
- Your designers requires less code, because you can use the host's service implementations instead of writing designer 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.