ActiveX Executables

Single-Use and Multi-Use Components

Single-use components allow other applications to create objects, but every object is a new instance of the component. Only ActiveX executable files can be single-use components; ActiveX DLLs can only be multi-use components.

Multi-use components allow other applications to create objects from their classes. One instance of your component can provide any number of objects created in this fashion. An out-of-process component can supply multiple objects to multiple clients . An in-process component can supply multiple objects to the client and to any other components in its own process. Both ActiveX executable and ActiveX DLL components can be multi-use components.

Lesson Summary

ActiveX code components are libraries of objects that provide an easy way to package code for reuse. ActiveX code components provide functionality to client applications through OLE Automation. Automation makes it possible for one application to manipulate objects implemented in another application. Components can run either in-process or out-of-process. An in-process component, also known as an ActiveX DLL, runs in another application's process. An ActiveX executable executes within its own address space.



Microsoft Windows Architecture Training
Microsoft Windows Architecture for Developers Training Kit
ISBN: B00007FY9D
EAN: N/A
Year: 1998
Pages: 324

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net