Accessing The Pcanywhere Automation Server With Visual C - Symantec PCANYWHERE - OLE AUTOMATION GUIDE V12.1 Manual

Ole automation guide
Table of Contents

Advertisement

Accessing the pcAnywhere Automation Server with Visual C++

The following examples demonstrate a Get and a Set:
To get an object's phone number value, place the property name to the
right of the assignment operator.
For example, s = RemoteData.PhoneNumber(), where s is a string
variable.
To set the phone number, place the property name to the left of the
assignment operator.
For example, RemoteData.PhoneNumber = "555-1212"
The pcAnywhere Automation Server uses type libraries to expose information
about its interfaces and methods to automation clients that are written in Visual
C++. These type libraries use Microsoft Foundation Classes (MFC), which can be
imported into your application using the Visual C++ ClassWizard.
The data manager classes that are provided in the type libraries provide the
functionality that is needed to obtain an interface to the pcAnywhere
Automation Server and perform high-level operations on the interface's
associated object type.
Use the data manager object to do the following:
Determine or change the current directory.
Enumerate through the list of data object files in the current directory.
Create, retrieve, or delete a named object.
Once created or retrieved, an object uses the associated data object class to
examine or modify any of its exposed properties. Most of these properties are
exposed through a pair of methods that begin with the word Get or Set. For
example, a user calls the GetPhoneNumber method to examine the object's
current phone number property and calls SetPhoneNumber to set it.
See
"Visual C++ object definitions"
Importing and viewing classes
The pcAnywhere Automation Server uses the following type libraries:
Winawsvr.tlb: Provides the information needed to connect to the
pcAnywhere Automation Server and access its interfaces
Awrem32.tlb: Provides the information needed to control pcAnywhere
connections
Using OLE Automation with Symantec pcAnywhere
on page 69.
15
Before you start

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pcanywhere v12.1

Table of Contents