Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Toolkit User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

20.3 Using the ActiveHost Form Editing Framework

20.3.1 To incorporate ActiveHost into your application

  1. As with ActiveScript, set up your application as an OLE control container by adding the following lines to your application's InitInstance() method.

  2. Modify your document template instantiation in your application's InitInstance() method so the ActiveHost Document and View classes are created. You may want to derive your document classes or view classes or both from SECScriptHostDoc or SECScriptHostView.

  3. If you want to support direct scripting access to this application (for example, through the SECAAppObj class), make the following document template entry. Use all three of the run-time classes listed below or use derived classes.

        SECAFloatDocTemplate* pFloatDocTempl=
         new SECAFloatDocTemplate(IDR_TOPLEVEL,
          RUNTIME_CLASS(SECScriptHostDoc),
          RUNTIME_CLASS(SECADlgFrame),
          RUNTIME_CLASS(SECScriptHostView));
        AddDocTemplate(pFloatDocTempl);
      


Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.