The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Farabi on February 16, 2008, 03:51:57 AM

Title: COM?
Post by: Farabi on February 16, 2008, 03:51:57 AM
I downloaded Microsoft SAPI SDK 2 days ago. And I did made a inc file from its lib.
When I read the help file it was wrote "Then the application must make a call to ISpRecognizer::SetInput ", the problem is, I can found the ISpRecognizer function, but I dont know where is the SetInput item. How to access that function?

ISpRecognizer is described as

IID_ISpRecognizer PROTO C :VARARG
Title: Re: COM?
Post by: Biterider on February 16, 2008, 06:31:39 AM
Hi
Look into the ObjAsm32 package.
There you can find 2 full running application using SAPI: SpeechCmds and TextToSpeech.

Regards,

Biterider
Title: Re: COM?
Post by: ToutEnMasm on February 16, 2008, 02:28:53 PM
Hello,
Perhaps a false research,
{2D5F1C0C-BD75-4B08-9478-3B11FEA2586C}   ISpeechRecognizer  ;windows system

http://msdn2.microsoft.com/en-us/library/ms722071(VS.85).aspx
(http://msdn2.microsoft.com/en-us/library/ms722071(VS.85).aspx%3Cbr%20/%3E)

Seems to be one answer
Quote
http://msdn2.microsoft.com/en-us/library/ms718864(VS.85).aspx
Title: Re: COM?
Post by: Farabi on February 17, 2008, 05:37:23 AM
Biterider:
Thanks, that was cool. I have look into the sample, it is a bit complicated but I will try to study it. Can I know how to make it working in my project? Is it just put the include file on my project?
Title: Re: COM?
Post by: ToutEnMasm on February 17, 2008, 06:54:36 AM
Hello,
At the first time,i will try to make it work with the c++ and made a dissassembly of it.
Then adding the translated include file will not be very difficult.
Title: Re: COM?
Post by: Farabi on February 17, 2008, 08:13:26 AM
Quote from: ToutEnMasm on February 17, 2008, 06:54:36 AM
Hello,
At the first time,i will try to make it work with the c++ and made a dissassembly of it.
Then adding the translated include file will not be very difficult.


Well, I dont have C++ and I dont know how to use it.
Do you know why each time I use Object.inc always appear an error message like this? error LNK2001: unresolved external symbol _OnEvent@12 and error A2006: undefined symbol : Self
Title: Re: COM?
Post by: Biterider on February 17, 2008, 01:18:40 PM
Hi Farabi
I don't know exactly what you want to do, but i suggest to use one of the demo projects that better fits and start with it. There are a lot of related files you need to use.
I don't know about your linker error, but my guess is that it is related to a missing file in your project.

Regards,

Biterider
Title: Re: COM?
Post by: ToutEnMasm on February 17, 2008, 05:02:22 PM
Quote
Well, I dont have C++ and I dont know how to use it.
Do you know why each time I use Object.inc always appear an error message like this? error LNK2001: unresolved external symbol _OnEvent@12 and error A2006: undefined symbol : Self

The c++ express is dowloadable for free at microsoft.It's a real tool needed.
You can try the samples that you find ...

The _OnEvent@12  error mean that the defined:

OnEvent PROTO :DWORD,:DWORD,:DWORD is missing on the library (search lib of your SDK)

I haven't this SDk and couldn't try to help you more.
Search which .h have a OnEvent(,,); declaration