Dispatch voiceItems=Dispatch.call(spVoice,"GetVoices").toDispatch();
int count=Integer.valueOf(Dispatch.call(voiceItems,"Count").toString());
if(count>0)
{
Dispatch voiceItem=Dispatch.call(voiceItems,"Item",new Variant(this.voice)).toDispatch();
Dispatch.put(spVoice,"Voice",voiceItem);
}
上面这段代码会报下面这个错是怎么回事??
A COM exception has been encountered:
At Invoke of: Voice
Description: 80020003 / 找不到成员。
com.jacob.com.ComFailException: A COM exception has been encountered:
At Invoke of: Voice
Description: 80020003 / 找不到成员。