Code Examples
  Home arrow Code Examples arrow Page 2 - Creating a Custom Object with WSC
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
CODE EXAMPLES

Creating a Custom Object with WSC
By: Nilpo
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2009-03-30

    Table of Contents:
  • Creating a Custom Object with WSC
  • Using the Script Component Wizard
  • Creating the Public Interface
  • Wrapping up the wizard

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating a Custom Object with WSC - Using the Script Component Wizard


    (Page 2 of 4 )

    Once you provide the basic details about the component name and version, you’ll need to specify the more technical aspects of your component on the second page of the wizard.

    wscw02.jpg

    Here you should specify the language you intend to use, add any implementations, and provide the type of error checking you would like to use.  Keep in mind that you can change these options later by editing the WSC file, as you’ll soon see.  If you’re not sure what to use, just use the ones in the image above.

    Specifying a language is pretty straightforward.  This will add the necessary <script> element to your WSC file.  If you intend to use more than one language, or are undecided, you can always change later, so just pick one.  Today’s example is written in VBScript, so that’s what I’ve chosen.

    Implementations are used to control your object’s interaction with its host application.  If you’re using your object in WSH, you do not need any implementations.  The first option adds support for DHTML Behaviors.  This allows your script to interact with the browser DOM when creating components for use in web pages or HTML applications.  The second option provides support for ASP and will allow you to use ASP-provided objects in your script, such as Response.Write() and Server.MapPath().  Adding one or more of these implementations will not affect your component’s use in scripting.  It won’t hurt a thing if they go unused.

    More Code Examples Articles
    More By Nilpo


     

    CODE EXAMPLES ARTICLES

    - Bipartite Graphs
    - Connectivity in Graphs
    - The Ford-Fulkerson Algorithm
    - Critical Paths
    - The Bellman-Ford and Roy-Floyd Algorithms
    - Shortest Path Algorithms in Graphs
    - Minimum Spanning Tree
    - Articulation Edges and Vertexes
    - Circles and Connectivity in Graphs
    - Depth-First Search in Graphs
    - Breadth-First Search in Graphs
    - The Prufer Code and the Floyd-Warshall Algor...
    - An Insight into Graphs
    - Coding a Custom Object with WSC
    - Creating a Custom Object with WSC





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek