Windows Scripting
  Home arrow Windows Scripting arrow Page 3 - 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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Understanding Objects - How COM objects are built


    (Page 3 of 4 )

    Now that you understand how to use objects, let’s take a closer look at how COM objects are built.  They require a few pieces in order to function properly.

    The primary piece is the code base.  This is the class itself.  Most often these are compiled as either DLL or OCX files depending upon their type.  This is the code that defines all of the procedures associated with the class.  These are identified using a GUID, or Globally Unique Identifier.

    They must also have an interface definition file.  This is a sort of manifest file that indicates what the class does and what procedures it exposes.  It also identifies the interfaces that can be used to access them. Most often these IDL files are compiled into another type of file known as a Type Library.

    Finally, the pieces have to be put into place.  In other words, they need to be present on the current system and the operating system needs to know where to find them when needed.  This is done through a process known as registering.  When a COM object is registered, entries are made in the system registry that define its namespace and the location to the executable files.  Some objects can even have their type libraries built at the time they are registered.

    A GUID is a long string of hexadecimal characters.  While they are human readable, remembering them would be nearly impossible.  Due to their length, it’s impractical to even reference them by their GUID outside of registration.

    Writing and constructing COM objects is far beyond the scope of this article.  I’ve given you a very brief look, but don’t consider this to be totally inclusive.  For our purposes, you need to understand that COM objects require installation on the system on which they are being used and that they are identified by a GUID.  Most often they will also have a friendlier namespace associated with them as well.

    More Windows Scripting Articles
    More By Nilpo


     

    WINDOWS SCRIPTING ARTICLES

    - Generating Outlook Signatures Based on Activ...
    - VBScript: Converting and Formatting with Fun...
    - VBScript: Conversion and Format Functions
    - 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





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