object.Callback
Specifies the name of a class module containing methods that receive notifications from the voice-command automation object. The class module must contain a CommandRecognize method and a CommandOther method.
· Example:
Vcmd.Callback = "TESTVCMD.VCmdSink"
object
Voice-command object.
The CommandRecognize and CommandOther methods have the following syntax:
Function CommandRecognize(szCommand as String, dwID as Long)
Function CommandOther(szCommand as String, szApp as String, szState as String)
For more information, see the description of the IVCmdNotifySink::CommandOther and IVCmdNotifySink::CommandRecognize member functions.
In this example, "TESTVCMD.VCmdSink" is a ProgID where "TESTVCMD" is derived from the Visual Basic project name, and "VCmdSink" is derived from the Name property of the class module. For more information, see section of the Visual Basic 4.0 documentation that describes how to create an OLE server.