Windows Scripting
  Home arrow Windows Scripting arrow Understanding Objects
Iron Speed
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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Download TestComplete 
Windows Web Hosting
 
IBM® developerWorks 
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? 
WINDOWS SCRIPTING

Understanding Objects
By: Nilpo
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 4
    2008-02-12

    Table of Contents:
  • Understanding Objects
  • What objects provide
  • How COM objects are built
  • More about objects

  • 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
     
     
    Iron Speed
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Understanding Objects
    (Page 1 of 4 )

    An object is an abstract term used to describe a set of methods, properties, and events that have a similar or related purpose. These pieces are typically intended to work together and are distributed as such.

    Objects can also represent instances of applications or code that execute outside of the current program or script.  An object reference allows you to interact with this outside program.  The outside program or script must be written with this support.

    From a programming standpoint, an object is simply defined as a class reference.  This reference must be imported into your current script.  Regardless of the language you choose to use—whether VBScript, Jscript, or some other—there is a method for connecting to these objects.

    Languages that support the use of objects are known as object-oriented languages.  These include languages such as VBScript, Jscript, Perl, and C++ to name a few.  Any of the scriptable languages can be used in WSH so long as you have added support for it.

    We’re going to be looking at a specific set of languages known as COM enabled.  Since these objects, or classes, need to be distributed to every computer that runs a script, it was deemed appropriate to preload Windows with a set of the most commonly used objects.  This set of native objects is collectively known as the Common Object Model, or COM.

    Most COM objects come in the form of ActiveX controls.

    COM has many types of objects intended for many different applications.  Some are more complex than others.  In order to use a COM object in WSH, it must have a scripting interface.  This means that it must have been designed to allow scripts to access it.  We’ll discuss this in more detail later in this article.

    For now, understand that objects allow you to execute code that is outside of your current script.

    More Windows Scripting Articles
    More By Nilpo


     

    WINDOWS SCRIPTING ARTICLES

    - VBScript: Array Functions
    - VBScript: Strings, You Can`t Function withou...
    - VBScript: More String Functions
    - VBScript: Functioning with Strings
    - Working with the Windows Registry in C++
    - Understanding Objects
    - HTML Applications: Giving WSH a User Interfa...
    - Modifying Computer Objects with Active Direc...
    - Logon Script to Send Email Notifications
    - Securing Computers and Active Directory
    - Moving and Renaming Computers with Active Di...
    - Working with System Processes in WSH
    - Active Directory and Computers
    - WCF and Proxies
    - Metadata and WCF Essentials




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway