[program-l] Re: Jfw api code fragment not working

  • From: "Jamal Mazrui" <Jamal.Mazrui@xxxxxxx>
  • To: <program-l@xxxxxxxxxxxxx>
  • Date: Fri, 9 Sep 2005 11:39:58 -0400

Is JFWStopSpeech returning True?

I am not a C programmer, so am guessing that you are using the static
version of the jfwapi library to compile its functions into your
executable.  Though less direct, it may be worth calling the dynamic
link library instead to check if that makes a diffrence with this
function.  Failing that, you might also try the COM version of the
library.

Another approach would be to read text a line at a time and detect a key
press such as the Control key to stop speech.

Jamal


-----Original Message-----
From: program-l-bounce@xxxxxxxxxxxxx
[mailto:program-l-bounce@xxxxxxxxxxxxx] On Behalf Of SEAN FARROW
Sent: Friday, September 09, 2005 7:17 AM
To: program-l@xxxxxxxxxxxxx
Subject: [program-l] Jfw api code fragment not working


Hi; 
I am using he jfw api within a vc6 dll. When using the JFWRunScript
function this work fine but when using the JFWStopSpeech function within
the following function the speech is not stoppedc as it should be.
Anyone got any idea given the following code? 
extern "C"
void WINAPI RunCommand( LPSTR pszCommand)
{
        if (pszCommand =="Stop Talking") { 
bool state;
        state =JFWStopSpeech();
        }

}
As you can see the jfwapi.h file is included, and the library is beeing
linked to in theproject options. 
Any help or ideas greatfully recieved. 
Regards 
Sean.


** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

** To leave the list, click on the immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe]
** If this link doesn't work then send a message to:
** program-l-request@xxxxxxxxxxxxx
** and in the Subject line type
** unsubscribe
** For other list commands such as vacation mode, click on the
** immediately-following link:-
** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq]
** or send a message, to
** program-l-request@xxxxxxxxxxxxx with the Subject:- faq

Other related posts: