🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1093

Re: Startup help with SAPI

#1093
From: Marc
Date: Wed, 21 Nov 2007 11:25
49 lines
2520 bytes
Hi all

With your help I managed to get my first "Hello World" through the 
loud-speaker :-)
So now I try to implement a SpeakToFile call.
But here things get quite out of my hands (and competence).

When I include the "sphelper.h" needed for the SPBindToFile function, I get 
plenty of errors in the *.h files.
IE if I set the _DEBUG option I get the error _CRTDBG_MODE_DEBUG not defined 
in the SPDebug.h and many more errors complaining about missing definitions.
I searched my PC for a definition of _CRTDBG_MODE_DEBUG and could not find 
it. Does anyone know in which file the definition is supposed to be ?

So I compiled without _DEBUG and now am stuck with an error in the 
sphelper.h, on line 1858
    HRESULT hr = ::CoCreateInstance(CLSID_SpStream, NULL, CLSCTX_ALL, 
__uuidof(*ppStream), (void **)ppStream);

Error: Invalid use of __uuidof



I am using BCB professional, v6 (Build 10.161), OS on XP SP2
Does this version have any problems or missing files ?
I also tried with bccsdk of Darko Miletic, but no success neither.

Thank you for every idea to get me a step further !

Rds
Marc






"Marc" <info@mawnet.com> schrieb im Newsbeitrag 
news:473ebe39$1@newsgroups.borland.com...
> Hi all
>
> I try to implement a simple SAPI application that reads back a phone 
> number. I downloaded the SDK 5.1 from Microsoft and had a look at the 
> samples... and did not quite got into it. Does someone has a simple sample 
> in BCB that just shows how to speak a number?
>
> Rds
> Marc
> 
Technical Details
Message-ID: <47441606$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <473ebe39$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ead936854bc3aa40
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Marc" <info@mawnet.com>
From: "Marc" <info@mawnet.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <473ebe39$1@newsgroups.borland.com>
Subject: Re: Startup help with SAPI
Date: Wed, 21 Nov 2007 12:25:57 +0100
Lines: 51
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 85.1.118.39
Message-ID: <47441606$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1195644422 85.1.118.39 (21 Nov 2007 03:27:02 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail