15
Using OLE Automation with Symantec pcAnywhere
Before you start
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”
Accessing the pcAnywhere Automation Server with Visual C++
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”
on page 69.
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
Summary of Contents for PCANYWHERE - OLE AUTOMATION GUIDE V12.1
Page 1: ...Symantec pcAnywhere OLE Automation Guide ...
Page 6: ......
Page 18: ...18 Using OLE Automation with Symantec pcAnywhere Where to find more information ...
Page 68: ...68 Visual Basic object definitions Awrem32 functions ...
Page 108: ...108 Visual C object definitions Awrem32 functions ...
Page 112: ...112 Index ...