OLESPY User's Guide

 

Contents
 

                   What is OLESPY *
                                 Overview *

Getting Started *

     Program Package *

     System Requirements *

     Installation Instructions *

                           How to run OLESPY *      Starting the Program *

     Tracing Options *
 

What are Tracing Options? *

Opening COM Objects Tracing Options window *

Opening COM/DCOM API Tracing Options window *

Opening Display Options window *

Selecting COM Interface for tracing *

Selecting the COM /DCOM API functions for tracing *

How to select functions? *

Selecting process for tracing *

Selecting tracing presentation *

Closing Tracing Options window *
 

Tracing Window *

   Overview *

File Operations *

   New *

   Saving trace to a file *

   Opening trace from a file *

Edit Operations *

Toolbar and Windows *

     Toolbar *

     Windows *

 

What is OLESPY

             Overview

                           When COM clients communicate to COM servers they make two types of COM-related calls:

These calls are explicit for 3GL-written applications, such as "C" or "C++" (if not using special libraries, like ATL, for example). 4GL-written applications, such as Visual Basic and Powerbuilder and 3GL applications using libraries make these call implicitly, through specialized language constructs or library objects.

The task of tracing COM-related calls the application is making becomes very important for:


 

Getting Started

              Program Package

  The OLESPY program package includes the following documentation and software:    
System Requirements
The OLESPY program requires the following hardware and software configuration:    

 

Installation Instructions
The installation procedure has to be used in order to install the program. You cannot simply copy the program files from the installation disk to your hard drive.

Insert the Installation Disk into a floppy drive.

Using Windows Explorer, Program Manager or File Manager start the SETUP.EXE program from your floppy drive (typically, A: or B:).

Follow the installation instructions in your screen.

 

 

How to run OLESPY
Starting the Program
To start the program click on the OLESPY
icon:

  

 
 
You can also run the OLESPY.EXE from Windows Explorer, Program Manager or File Manager.

The start-up screen has one open empty sheet:

 
 
    Note: To launch an application automatically, on OLESPY startup run OLESPY with parameter( location and name of tracing program): OLESPY [Filename]

 

 
OLESPY is an MDI application. Multiple tracing sheets can be opened at the same time. Depending on the display options a new sheet will be opened for each thread of a traced process or the active sheet will capture calls from all traced processes.

  

            Tracing Options

What are Tracing Options?

OLESPY lets you trace interface methods and COM/DCOM API functions without having to make any modifications to the source code.

Tracing options are set in the following Tracing Options dialogs:

  COM Objects window presents a choice of: interface functions selectable through type libraries or interfaces.

COM/DCOM API Functions window contains the list of functions from COM/DCOM library .

Display Options window contains the display options: Autotile, Separate sheet per thread and Log to file.

Notes:

  • Tracing options can be changed at any time during the session and become effective immediately after "OK"-ing out of the window
  • ( except log file settings) will be saved in the registry and automatically restored in the next session.
       
    Opening COM Objects Tracing Options window

     

    From the Options menu, choose COM Objects , or use the ‘Magnet’ Toolbar button:

     
     
     

    This will display ‘COM objects’ window.
     
     
     
     

     
      Opening COM/DCOM API Tracing Options window   From the Options menu, choose COM/DCOM API Functions , or use the ‘Functions’ Toolbar button:
        This will open ‘COM API Selection’ window.
       
     
     
     

    Opening Display Options window
     

    From the Options menu, choose Display

    Options , or use the ‘Display’ Toolbar button:
     

     

      This will open ‘Display Options’ window.
     
     

     

     

    Selecting COM Interface for tracing
     

    There are three interface tracing options :

    Note:
    Even if you chose Interface Tracing Options ‘All Calls’, you will still be able to select interfaces or methods into the right panel. This can be useful if, during the process of tracing, you decide to switch from 'All' to 'Include selected' or 'Exclude selected' without reselecting the methods. OLESPY will remember your methods selection.
       
     
     
     
    How to select all COM Interfaces

    To select all COM Interfaces for tracing click on radio button ‘All Calls’ in ‘COM Objects’ window.

     

    How to include/exclude a subset of COM Interfaces

    There are two ways to include/exclude COM interface methods for tracing:

     

      Note:
    The first method allows to select only complete interfaces , i.e. all the methods in the interfaces. To be more selective you will have to use the second method of selection: through type libraries.   Including/Excluding COM Interface methods through interface subtree.

    Follow these steps:


     
     
     

     

    Repeat these steps for all Interfaces you want to trace.

    To trace IUnknown Interface methods check or uncheck ‘QueryInterface’ ,’ AddRef’ and ‘Release’ check boxes.
     
     

    Including/Excluding COM Interface methods through type libraries.

    Follow these steps:

     
     
    The selected methods or interfaces will be added to the right panel ‘Selected Methods'.  

     

     
     
     
    Notes:
      Unselecting methods or interface

    To unselect an interface or interface method from tracing highlight it in the right panel ‘Selected Methods’ and click on the 'Move to the left' button:

      
     
     
     
    Selecting the COM /DCOM API functions for tracing

     

    In order to select a COM/DCOM library function for tracing you have to move it from the ‘COM API Functions’ panel to the ‘Selected Functions’ panel.

     


     

     

    How to select functions?

     

    Selecting a function to trace can be done in several ways:
    To get detail information about any function or interface method in any window (sheet) – click on it in the left panel.

     


     

     

    File Operations

     

    File operations of OLESPY are straightforward. You can open a new sheet window, aave a trace and later open it again in the application.

    Note:

    Logged traces can also be opened.

    New

    To open New trace sheet window from File menu, choose New or use the ‘New’ Toolbar button:

     

     
    Note:

    Unless you uncheck separate sheet per thread this command will not effect tracing display.
     

    Saving trace to a file

      Saving trace to a file is functionally similar to logging to a file. The only difference is that logging will do it one line at a time while saving takes all data from the active sheet window.
     

      To save any Trace sheet window to a file:
     

     

    It will open standard window Save as dialog where you can choose the directory and type the name of the file.


     

     

    Note:

    You can open saved or logged files in any text editor.
     

    Opening trace from a file

    Any valid file saved from OLESPY application options such as ‘Logging to a file’, ‘Saving trace to a file ’ can be opened into a new tracing sheet window.

    To open a previously saved file into a new sheet window from the File menu, choose Open or press Ctrl+ O keys or use or use the ‘Open’ Toolbar button:

     

     
    It will open standard window dialog where you can choose the directory and the file .

       

    Note:
    This new window opened from a file becomes a valid trace window with all functions available in OLESPY .
     

     

    Edit Operations
      Find

    To find text within active Tracing window you can use ‘Find ‘ dialog.

    To activate it, choose ‘Find…’ from the Edit menu or use the Toolbar button:

     

     

    It will display a ‘Find ’ window.

    Note:

    Find Next ’ button will be enabled after you start typing intot ‘Find what’ field.

     

    OLESPY starts to search from the current item on the left panel (by default, it will search starting from the root item). Type the substring of the item you want to find and click ‘Find Next’. OLESPY will start searching, opening every function and interface and showing (highlighting) the first item that matches your criteria. OLESPY will indicate the detailed information about every match in the right panel. The next search result will be displayed when you press ‘Find Next’ again without changing the search text. To cancel the search, press ‘Cancel’ button in the ‘Find’ window.

    If more then one sheet are open the search will be performed in the active sheet.

       

     

    Toolbar and Windows
      Toolbar
     

    OLESPY has a toolbar which can be used for quick access to many features.

     


     

    If no sheets are opened some buttons on the toolbar will be disabled.

     


     

    You can show, hide and move toolbar.

    How to show/ hide toolbar

    On the View menu, click Toolbar to enable or disable it.

     

     
    How to move toolbar
     

    Click and hold down left mouse button on the border of the toolbar and drag it to its new position.

     

     

     
     
    The toolbars buttons

        Toolbar
     
     
      Windows  
     
    Multiple tracing sheets can be opened at the same time during a session. To see all open windows (sheets) choose one of the options in Window Menu:
      Note:

    The Tile command resizes and arranges the open group windows side by side. The Cascade command resizes and layers the open group windows so that each title bar is visible.

     
       
    Tiled Sheet Layout
     
    | Home Page | Screen Shot | OLESPY| Download Demo
     
    Copyright © 1997, Kogosoft Corporation. All Rights Reserved.