KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q183698: SAMPLE: AXSH.EXE Demonstrates Implementing ActiveX Script Hosts

Article: Q183698
Product(s): Microsoft C Compiler
Version(s): 1.0,1.1,2.0,3.0,4.0,5.0,6.0
Operating System(s): 
Keyword(s): kbfile kbSample kbActiveX kbSDKInet400 kbVBScript100 kbVBScript200 kbVBScript300 kbVC50
Last Modified: 02-MAY-2002

-------------------------------------------------------------------------------
The information in this article applies to:

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

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:

Axsh.exe

For additional information about how to download Microsoft Support files, click
the article number below to view the article in the Microsoft Knowledge Base:

  Q119591 How to Obtain Microsoft Support Files from Online Services

Microsoft used the most current virus detection software available on the date of
posting to scan this file for viruses. After it is posted, the file is housed on
secure servers that 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
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 
Technology        : kbVCsearch kbVBScriptSearch kbAudDeveloper kbSDKSearch kbSDKIClient400 kbIClientSearch kbVC500 kbVC600 kbVC32bitSearch kbVBScript110 kbVBScript200 kbVBScript300 kbVCNET kbVC500Search kbVBScript100
Version           : :1.0,1.1,2.0,3.0,4.0,5.0,6.0

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.