|
-
Nov 14th, 2008, 01:49 AM
#1
Thread Starter
New Member
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
-
Nov 14th, 2008, 02:00 AM
#2
Thread Starter
New Member
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 ....
-
Nov 14th, 2008, 02:15 AM
#3
Fanatic Member
Re: code doesn't run (on an XP machine)?
 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|