Accessing The Pcanywhere Automation Server; Accessing The Pcanywhere Automation Server With Visual Basic - Symantec PCANYWHERE - OLE AUTOMATION GUIDE V 12.5 Manual

Hide thumbs Also See for PCANYWHERE - OLE AUTOMATION GUIDE V 12.5:
Table of Contents

Advertisement

12
Using OLE Automation with Symantec pcAnywhere
Before you start

Accessing the pcAnywhere Automation Server

Accessing the pcAnywhere Automation Server with Visual Basic

pcAnywhere Automation Server executable file (Winawsvr.exe). You only need
to run the executable file once to add the GUIDs to the registry. The Winawsvr.exe
file is located in the installation directory.
You can access the pcAnywhere Automation Server using any language platform
that supports OLE Automation. The two most popular language platforms that
support OLE Automation are Visual Basic and Visual C++.
The coding principles for these two platforms are similar, although in the Visual
Basic environment, much of the low-level work is performed behind the scenes
by the Visual Basic run-time system.
The Visual Basic programming language has built-in support to interact with OLE
Automation servers, such as the pcAnywhere Automation Server. You create a
Standard Exe project, and then enter code in each method to access the
pcAnywhere Automation Server. Visual Basic takes the high-level method calls
in the source files and expands them internally into the corresponding low-level
OLE Automation method calls.
To access the pcAnywhere Automation Server with Visual Basic
1
Add a pair of Object variables for each pcAnywhere object that you want to
access.
For example, when working with remote objects, DIM a RemoteDataManager
and a RemoteDataObject as Object.
2
Use the RemoteDataManager to attach to the remote object's data manager.
For example, call the CreateObject method with
WINAWSVR.REMOTEDATAMANAGER as a parameter.
Visual Basic uses the textual parameter to locate the manager's identifier in
the registry and returns the interface to that manager.
3
Once there is a valid data manager object, use it to do any of the following:
Determine the current directory.
Change to another directory.
Enumerate the associated data object files in the current directory.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ole automation

Table of Contents