Windows Scripting
  Home arrow Windows Scripting arrow Understanding Objects
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? 
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
     
     
    ADVERTISEMENT


    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

    - More Windows Scripting Workarounds from Nilpo
    - Overloading Methods and More in VBScript
    - Improving MFC for Windows Vista
    - Regular Expressions in VBScript
    - Working with Dates in WMI
    - Completing Calendars with VBScript Date Func...
    - Building Calendars with VBScript Date Functi...
    - Working With Dates and Times in VBScript
    - Designing WCF DataContract Classes Using the...
    - Understanding Dates and Times in VBScript
    - Working With Arrays in VBScript
    - Compressed Folders in WSH
    - Using .NET Interops in VBScript
    - Nilpo`s Scripting Secrets, Vol I
    - Database operations using Silverlight 2.0 WC...





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