The ActiveHost Sample
The scriptmdi and scriptsdi samples illustrate how to use the ActiveHost framework in MDI and SDI based applications. These samples are in the \samples\toolkit\MFC\ascript subdirectory.