home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ipdssdk.zip
/
SDK
/
SAMPLES
/
ELMO
/
ELMO_PUC.C
< prev
next >
Wrap
Text File
|
1994-02-08
|
7KB
|
116 lines
/***********************************************************************/
/* */
/* COPYRIGHT: */
/* */
/* Copyright (C) International Business Machine Corp, 1991,1994. */
/* */
/* DISCLAIMER OF WARRANTIES: */
/* */
/* The following enclosed code is sample code created by IBM */
/* Corporation. This code is not part of any standard IBM product */
/* and is provided to you solely for the purpose of assisting you in */
/* the development of your applications. The code is provided */
/* "AS IS", without warranty of any kind. IBM shall not be liable for */
/* any damages arising out of your use of the sample code, even if */
/* they have been advised of the possibility of such damages. */
/* */
/* */
/* PROGRAM NAME: <ELMO.EXE> */
/* */
/* FILE NAME: ELMO_PUT.C */
/* */
/* DESCRIPTIVE NAME: Process utterance complete message for */
/* Elmo's Trusty Dictator */
/* */
/* STATUS: REVISION 1 */
/* */
/* */
/* FUNCTION: Contains the function that processes the utterance */
/* complete message */
/* */
/* NOTES: */
/* */
/* MODULE STRUCTURE: */
/* */
/* - process_utterance_complete_message */
/* */
/* */
/* DEPENDENCIES: */
/* */
/* - elmo.h Elmo defines */
/* - smapi.h IPDS API defines */
/* */
/* */
/* MODULE TYPE: (C language) */
/* */
/* */
/* CHANGE ACTIVITY: AS FOLLOWS */
/* */
/* FLAG REASON RLSE DATE ORIGIN DESCRIPTION */
/* ---- -------- ---- ------ ------ ----------- */
/* 0001 931102 JAF created */
/* */
/***********************************************************************/
#define INCL_WIN
#define INCL_DOS
#define INCL_GPIBITMAPS
/*---------------------------------------------------------------------*/
/* application system include files */
/*---------------------------------------------------------------------*/
#include <os2.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*---------------------------------------------------------------------*/
/* application include files */
/*---------------------------------------------------------------------*/
#include "elmo.h"
/*---------------------------------------------------------------------*/
/* IBM Personal Dictation System api include files */
/*---------------------------------------------------------------------*/
#include <smapi.h>
/***********************************************************************/
/* FUNCTION: process_utterance_complete_message */
/* */
/* PURPOSE : Process the utterance complete message */
/* */
/* INPUTS : reply - reply message */
/* - pointer to the instance data */
/* */
/* OUTPUTS : on error - displays an error message */
/* */
/* GLOBALS : NONE */
/* */
/***********************************************************************/
void process_utterance_complete_message ( SM_MSG reply, PINSTANCEDATA p )
{
/*--------------------*/
/* internal variables */
/*--------------------*/
int rc;
/*----------------*/
/* get the result */
/*----------------*/
SmGetRc ( reply, &rc );
/*-----------------------*/
/* check the return code */
/*-----------------------*/
if ( rc != SM_RC_OK ) {
/*---------------------------------------------*/
/* an error occurred so, post an error message */
/*---------------------------------------------*/
ListBoxAddItem ( p->hwndStatusLB,
"Received corrupted utterance complete message.",
STALISTBOXVISIBLECNT );
}
return;
}