How to use SAPI's SetNotifyCallbackFunction() in a CLR project with Windows Form as the interface wi
Posted
by manuel
on Stack Overflow
See other posts from Stack Overflow
or by manuel
Published on 2010-04-11T15:42:55Z
Indexed on
2010/04/11
15:53 UTC
Read the original article
Hit count: 659
Hi,
I'm trying to write a dll plugin for Winamp. I'm using Microsoft Visual Studio 2008 and Microsoft SAPI 5.1. I created the interface window using Windows Form (System::Windows::Forms::Form).
I tried to use SetNotifyWIndowMessage(), but the method is never called when I speak to the microphone. So I tried using SetNotifyCallbackFunction(), but I got a compile error saying that I should use '&' in front of the method name in the parameter. However, when I add the '&', I got another compile error saying that i can't take the address of the method unless creating delegate instance.
What should I do? Someone please help me..
© Stack Overflow or respective owner