Results 1 to 16 of 16

Thread: code doesn't run (on an XP machine)?

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    8

    Re: code doesn't run (on an XP machine)?

    hi...

    its not for girl hehe.. but really its very big helpto me....

    noo i didnt run it on XP.. he sent to me this error and i passed it to forums.. but actually i dont know this code is vb or vb.net .....just i paste this in vb.net and checked.. only this codes work...

    Option Explicit Off

    Imports SpeechLib

    Public Class Form1
    Public WithEvents RC As SpSharedRecoContext
    Public myGrammar, b As ISpeechRecoGrammar

    Private Sub Form1_Load()
    RC = New SpSharedRecoContext
    Label1.Text = "Form Loaded"
    myGrammar = RC.CreateGrammar
    myGrammar.CmdLoadFromFile("e:\SolApp\sol.xml", SLODynamic)
    myGrammar.CmdSetRuleIdState(0, SGDSActive)
    Label1.Text = "Grammar Loaded"
    End Sub


    My big problem is how this function work.....


    Private Sub RC_FalseRecognition(ByVal StreamNumber As Long, ByVal
    StreamPosition As Object, ByVal Result As SpeechLib.ISpeechRecoResult)
    Label1.Text = "(no recognition)"
    End Sub

    Private Sub RC_Recognition(ByVal StreamNumber As Long, ByVal
    StreamPosition As Object, ByVal RecognitionType As
    SpeechLib.SpeechRecognitionType, ByVal Result As
    SpeechLib.ISpeechRecoResult)
    Label1.Text = Result.PhraseInfo.GetText
    End Sub

    thank you

  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2008
    Posts
    8

    Re: code doesn't run (on an XP machine)?

    Thankyou verymuch for your advice and thanks for help ... Im doing c# asp so i dont have any experienc e abt this.. normally our c# site forums we are checkig and sending answers .. but you just ask.. may be all of u to havent much idea abt this ....

  3. #3
    Fanatic Member pvbangera's Avatar
    Join Date
    Sep 2001
    Location
    Mumbai, India
    Posts
    961

    Re: code doesn't run (on an XP machine)?

    Quote Originally Posted by msbsam
    Thankyou verymuch for your advice and thanks for help ... Im doing c# asp so i dont have any experienc e abt this.. normally our c# site forums we are checkig and sending answers .. but you just ask.. may be all of u to havent much idea abt this ....
    Look who's talking!!

    You say you know C# and not VB. You are talking about just two different languages. The concepts are the same. If you know OOP concepts, language is merely a barrier. Anyway, dont keep this attitude if you are expecting help from others.
    Microsoft Techie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width