SAMPLE: AXSH.EXE Demonstrates Implementing ActiveX Script Hosts

ID: Q183698


The information in this article applies to:
  • Microsoft Visual C++, 32-bit Editions, versions 5.0, 6.0
  • Microsoft Visual Basic, Scripting Edition, versions 1.1, 2.0, 3.0
  • Internet Client SDK, version 4.0


SUMMARY

The Axsh.exe sample is a sample that demonstrates how to implement an ActiveX Scripting host.


MORE INFORMATION

The following files are available for download from the Microsoft Download Center. Click the file names below to download the files:


Axsh.exe

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address

http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.



When you run the self-extracting executable file, the following files are expanded into the C:\Program Files\DevStudio\MyProjects\ActiveXExample directory:
  • Readme.txt (11.5K)
  • MyScript.txt (1K)
  • AshHelloWorld.dsp (5K)
  • Ashhelloworld.h (9K)
  • AshHelloWorld.mak (9K)
  • AshHelloWorld.odl (1K)
  • Ashhelloworld_i.c (1K)
  • Generic.rc (3K)
  • GenericApp.cpp (11.5K)
  • Icon1.ico (1K)
  • MyDispids.H (.5K)
  • ObjectFrame.cpp (20K)
  • ObjectFrame.h (3K)
  • Resource.h(.6K)
  • ScriptedFrame.cpp (16K)
  • ScriptedFrame.h(3K)
  • Multinfo.h(7K)
To use the file, open it to extract the Readme.txt file and the sample source code. The Readme.txt file contains step-by-step instructions for implementing the ActiveX script host.

To compile the sample application:

  1. On the File menu in Microsoft Visual C++, click Open Workspace.


  2. Open the AshHelloWorld.mak file.


  3. Compile.


(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Joel Alley, Microsoft Corporation.


REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

Q168214 SAMPLE: MFCAXS Implements an Active Script Host Using MFC

Additional query words: ActiveX Script Hosting vbscript jscript

Keywords : kbfile kbsample kbActiveX kbSDKInet400 kbVBScript100 kbVBScript200 kbVBScript300 kbVC500 kbVC600 kbVBScript110
Version : WINDOWS:1.1,2.0,3.0,4.0; winnt:5.0,6.0
Platform : WINDOWS winnt
Issue type :


Last Reviewed: December 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.