"Graham" wrote in message news:o1c2ms$19t1$1@gioia.aioe.org...
"Rav" wrote in message news:o1adga$fiu$1@dont-email.me...
> On 11/25/2016 3:38 PM, Graham wrote:
>>
>> "aplWin" wrote in message news:112b5553-2d90-4165-89f5-3d81833ad25b@googlegroups.com...
[Snip}
> I may be off base here, but with a little Googling it looks like
> ¯2147352572, which is 80020004 in hex, may be the ActiveX (COM object)
> error code for Parameter Not Found, A.K.A. A Required Argument is
> Missing. Assuming that /is/ that classification of error code.
Thanks. It looks like you were on base here ;) Given what you said about missing parameters above I tried entering all the parameters listed in the spec even though all but the first two were described as optional.
ISpeechGrammarRuleState.AddWordTransition(
DestinationState As ISpeechGrammarRuleState,
Words As String,
[Separators As String = " "],
[Type As SpeechGrammarWordType = SGLexical],
[PropertyName As String = ""],
[PropertyId As Long = 0],
[PropertyValue As Variant = 0],
[Weight As Single = 1.0]
)
The code sample I had been working from only showed the first two parameters being enered. This was the resulting line of APL code which worked:'fm.wordsRule' Œwi 'xInitialState.AddWordTransition' 0 'one' ' ' 1 'one' 0 0 1
I now have to work on the event handlers to do something useful which appears to require a new object to be created from the fourth element of the result returned via []warg.
Thanks again for the idea.
Graham.
Update. Thanks to Rav and aplWin I now have a fully functioning voice controlled APL application.
Graham.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
|
|