Click here to Skip to main content
15,922,584 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Obtain the checkedlistbox value Pin
Paul McGann19-Apr-09 23:09
professionalPaul McGann19-Apr-09 23:09 
GeneralRe: Obtain the checkedlistbox value Pin
Paul McGann20-Apr-09 1:39
professionalPaul McGann20-Apr-09 1:39 
GeneralRe: Obtain the checkedlistbox value Pin
RyanMorris20-Apr-09 2:02
RyanMorris20-Apr-09 2:02 
QuestionProblem with WinForm Application Tab Control using VB.NET2008 Framework 2.0 Pin
drexler_kk19-Apr-09 21:29
drexler_kk19-Apr-09 21:29 
AnswerRe: Problem with WinForm Application Tab Control using VB.NET2008 Framework 2.0 [modified] Pin
S.M.kanerkar19-Apr-09 23:52
S.M.kanerkar19-Apr-09 23:52 
AnswerRe: Problem with WinForm Application Tab Control using VB.NET2008 Framework 2.0 Pin
drexler_kk20-Apr-09 5:07
drexler_kk20-Apr-09 5:07 
QuestionRegarding crystal report [modified] Pin
S.M.kanerkar19-Apr-09 20:01
S.M.kanerkar19-Apr-09 20:01 
QuestionHow to get the attachment ContentID from an Outlook.MailItem Pin
David Andersonq19-Apr-09 15:50
David Andersonq19-Apr-09 15:50 
QuestionI'm having some trouble with DirectX in VB Pin
NeoTechni19-Apr-09 8:55
NeoTechni19-Apr-09 8:55 
QuestionHow do you trap mouse clicks for save, copy and print? Pin
AndyASPVB19-Apr-09 2:33
AndyASPVB19-Apr-09 2:33 
AnswerRe: How do you trap mouse clicks for save, copy and print? Pin
Christian Graus19-Apr-09 14:39
protectorChristian Graus19-Apr-09 14:39 
QuestionProtected Overrides Function ProcessCmdKey Pin
AndyASPVB19-Apr-09 0:52
AndyASPVB19-Apr-09 0:52 
AnswerRe: Protected Overrides Function ProcessCmdKey Pin
Luc Pattyn19-Apr-09 1:17
sitebuilderLuc Pattyn19-Apr-09 1:17 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
AndyASPVB19-Apr-09 2:25
AndyASPVB19-Apr-09 2:25 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
Luc Pattyn19-Apr-09 2:42
sitebuilderLuc Pattyn19-Apr-09 2:42 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
paas19-Apr-09 4:09
paas19-Apr-09 4:09 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
AndyASPVB19-Apr-09 5:11
AndyASPVB19-Apr-09 5:11 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
paas19-Apr-09 7:04
paas19-Apr-09 7:04 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
AndyASPVB19-Apr-09 10:33
AndyASPVB19-Apr-09 10:33 
GeneralRe: Protected Overrides Function ProcessCmdKey Pin
HowitZer2623-Jun-09 7:25
HowitZer2623-Jun-09 7:25 
QuestionXML: Writing and Parsing of HTML code Pin
DHalo18-Apr-09 17:26
DHalo18-Apr-09 17:26 
AnswerRe: XML: Writing and Parsing of HTML code Pin
Colin Angus Mackay19-Apr-09 1:11
Colin Angus Mackay19-Apr-09 1:11 
QuestionVoice Command Grammar Loading Error Pin
p00m18-Apr-09 8:37
p00m18-Apr-09 8:37 
Hello everyone

I'm working on a large project wich involves voice command. I've made the basic things (dictation, commands hardcoded with general Grammar) however now i wanted to implement my custom grammar XML file but i keep getting an error. I've gone over almost all the tutorials and scripts i could find on the matter (2 days of nearly non-stop research). So i finaly desided to post here for help.

I'm getting the "ComException was unhandled - Exception from HRESULT: 0x80046052" error on the following code:

Grammar.CmdLoadFromFile("C:\Grammar.xml", SpeechLoadOption.SLOStatic)


Here is a scaled down version of the problem:

Imports System
Imports System.Data
Imports System.Deployment
Imports System.Drawing
Imports System.Windows.Forms
Imports System.Xml

Imports SpeechLib

Public Class Form2
Dim WithEvents RecoContext As SpSharedRecoContext
Dim Grammar As ISpeechRecoGrammar

Private Sub initialize()
        If RecoContext Is Nothing Then
            RecoContext = New SpSharedRecoContext
            Grammar = RecoContext.CreateGrammar(1)
            Grammar.CmdLoadFromFile("c:\Grammar.xml", SpeechLoadOption.SLOStatic)  'Error here
            Grammar.DictationSetState(SpeechRuleState.SGDSInactive)
            Grammar.CmdSetRuleIdState(1, SpeechRuleState.SGDSActive)
        End If
End Sub

Private Sub btnInit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInit.Click
        initialize()
    End Sub

End Class


Any help would be appreciated!

Thanks in advance

p00m
AnswerRe: Voice Command Grammar Loading Error Pin
Johan Hakkesteegt21-Apr-09 21:32
Johan Hakkesteegt21-Apr-09 21:32 
QuestionNeed help on Visual basic 2008 Express (Microsoft Access Database) Pin
helen0018-Apr-09 7:27
helen0018-Apr-09 7:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.