Making Global Declarations for Agent Demo

Listing 14.4 contains the global declarations I need in this program. The Option Explicit clause should be familiar by now, and the AgentPath was used in the Hello Jill program. I declare object variables for my Agent character and a Request object that I use to track the execution of an animation.

Listing 14.4: Global Declarations for Agent Demo

Option Explicit
Const AgentPath = “c:\Program Files\Microsoft Agent\Characters\”
Dim MyAgent As IAgentCtlCharacter
Dim MyRequest As IagentCtlRequest

© 1998 SYBEX Inc. All rights reserved.