Axsh.exe demonstrates how to implement an active scripting host (183698)



The information in this article applies to:

  • Microsoft Visual C++, 32-bit Enterprise Edition 5.0
  • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
  • Microsoft Visual C++, 32-bit Professional Edition 5.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++, 32-bit Learning Edition 6.0
  • Microsoft Visual Basic, Scripting Edition 1.0
  • Microsoft Visual Basic, Scripting Edition 1.1
  • Microsoft Visual Basic, Scripting Edition 2.0
  • Microsoft Visual Basic, Scripting Edition 3.0
  • Microsoft Internet Client SDK 4.0
  • Microsoft Visual C++ .NET (2002)

This article was previously published under Q183698

SUMMARY

The Axsh.exe sample is a sample that demonstrates how to implement an active scripting host.

MORE INFORMATION

The following files are available for download from the Microsoft Download Center:
DownloadDownload the Axsh.exe package now.

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

When you run the self-extracting executable file, the following files are expanded into the C:\Program Files\DevStudio\MyProjects\ActiveXExample folder:
  • 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, follow these steps:
  1. Start in Microsoft Visual C++.
  2. On the File menu, click Open Workspace.
  3. Open the AshHelloWorld.mak file.
  4. Compile.
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Joel Alley, Microsoft Corporation.

REFERENCES

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

168214 MFCAxs.exe implements an Active Script Host using MFC


Modification Type:MajorLast Reviewed:9/1/2005
Keywords:ATdownload kbhowto kbdownload kbfile kbSample KB183698 kbAudDeveloper