标题:英文朗读程序遇到问题
只看楼主
tgling
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2021-4-11
 问题点数:0 回复次数:0 
英文朗读程序遇到问题
vb6.0运行提示“错-2147219692(80040714) 'register'方法‘ivtxtauto’失败,请大家帮忙!
 Dim vText As New VTxtAuto.VTxtAuto
Private Sub Command5_Click()
Load Form21
Form21.Show
Unload Me
End Sub
Private Sub cmdPause_Click()
        If vText.IsSpeaking Then
            cmdStop.Enabled = True
            cmdResume.Enabled = True
            vText.AudioPause
        End If
End Sub

Private Sub cmdResume_Click()

      vText.AudioResume

End Sub

Private Sub cmdSpeek_Click()
    Dim astr As String
    vText.Register vbNullString, "Speech"
    'vtext.Register
    astr = Text1.Text
    vText.Speak astr, vtxtsp_NORMAL Or vtxtst_QUESTION
    cmdSpeak.Enabled = False
    cmdStop.Enabled = True
    cmdPause.Enabled = True
    cmdResume.Enabled = False
    vText.Speak Text1, vtxtst_READING
End Sub

Private Sub cmdStop_Click()
        If vText.IsSpeaking Then
            cmdSpeak.Enabled = True
            cmdStop.Enabled = False
            vText.StopSpeaking
        End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Set vText = Nothing
End Sub
搜索更多相关主题的帖子: False Sub Private If End 
2021-04-11 18:40



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-505408-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.042919 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved