16 Using OLE Automation with Symantec pcAnywhere
Before you start
Import and view classes
The following procedures explain how to import the class definitions from the
pcAnywhere Automation Server type libraries into your MFC application and
then view the classes that have been added to your application.
To import classes
1
In Visual C++, create an MFC application.
2
On the View menu, click
Class Wizard
.
3
In the Class Wizard dialog box, click
Add Class
, and then click
From a type
library
.
4
Double-click
winawsvr.tlb
.
5
In the Confirm Classes dialog box, click
OK
to import all class definitions.
6
In the Class Wizard dialog box, click
Add Class
, and then click
From a type
library
.
7
Double-click
awrem32.tlb
.
8
In the Confirm Classes dialog box, click
OK
to import all class definitions.
9
In the Class Wizard dialog box, click
OK
to complete the import process.
The classes are added to the application. These classes let you manipulate
objects and manage connections.
Importing the class definitions from the type libraries also adds support
files to the application. These files contain the class definitions and
implementation source code for the pcAnywhere Automation Server.
See
“Viewing the class definitions and implementation files”
on page 16.
To view the added classes
1
In Visual C++, open your MFC application.
2
In the Workspace window, click the
ClassView
tab.
Viewing the class definitions and implementation files
When you import the pcAnywhere Automation Server type libraries into your
application, the following files are added:
■
Winawsvr.h
■
Winawsvr.cpp
■
Awrem32.h
■
Awrem32.cpp
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 ...