Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to invoke the event handler for c++ code as


C++
recognizer.SpeechRecognized +=
         new EventHandler<speechrecognizedeventargs>(this,main::recognizer_SpeechRecognized);


where called event is
C++
static void recognizer_SpeechRecognized(object sender,T e)
   {
     Console.WriteLine("Recognized text: " + T.Result.Text);
   }

i found bug "object undeclare" and many more
can any body help me plz
thanks in advance
Posted
Updated 28-Nov-13 22:42pm
v2
Comments
Maciej Los 29-Nov-13 4:42am    
Have you tried to search CP Knowledge Base[^]?
You should add reference article...

1 solution

The eventhandler shoul look like this

static void OnSpeechRecognized(object sender, SpeechRecognizedEventArgs e)

read here from more information
http://msdn.microsoft.com/en-us/library/system.speech.recognition.speechrecognitionengine.speechrecognized(v=vs.110).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900