Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

Summary

In this chapter, you looked at creating scriptable ActiveX controls with the Active Template Library. You first learned about the ATL classes used specifically for ActiveX controls. You then focused on the steps required to add properties and methods to a control built with ATL.

Connection points originally were developed to make it possible for ActiveX controls to interact with their containers. You learned about connection points and how you can add support for connection points to an ATL project.

For a control to be scriptable, it must follow Microsoft's object safety guidelines and be marked as safe for scripting. In this chapter, you examined the IObjectSafety interface and learned how a control built using ATL can take advantage of IObjectSafety. An example of a safely scriptable ActiveX control helped you explore this topic.

Share ThisShare This

Informit Network