Click here to Skip to main content
15,903,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with IXMLDOMNode::get_nodeValue Pin
NiceNaidu15-Feb-07 18:11
NiceNaidu15-Feb-07 18:11 
QuestionRe: Problem with IXMLDOMNode::get_nodeValue Pin
prasad_som15-Feb-07 18:47
prasad_som15-Feb-07 18:47 
AnswerRe: Problem with IXMLDOMNode::get_nodeValue Pin
NiceNaidu15-Feb-07 19:08
NiceNaidu15-Feb-07 19:08 
GeneralRe: Problem with IXMLDOMNode::get_nodeValue Pin
prasad_som15-Feb-07 19:19
prasad_som15-Feb-07 19:19 
GeneralRe: Problem with IXMLDOMNode::get_nodeValue Pin
NiceNaidu15-Feb-07 19:31
NiceNaidu15-Feb-07 19:31 
AnswerRe: Problem with IXMLDOMNode::get_nodeValue Pin
Michael Dunn15-Feb-07 20:47
sitebuilderMichael Dunn15-Feb-07 20:47 
GeneralRe: Problem with IXMLDOMNode::get_nodeValue Pin
NiceNaidu15-Feb-07 20:56
NiceNaidu15-Feb-07 20:56 
Questionfatal error LNK1104: cannot open file Pin
chocm15-Feb-07 18:05
chocm15-Feb-07 18:05 
The code below is a text-to-speech program, building in the debug mode is all right, but building in the release mode, there is an error:

Linking...
LINK : fatal error LNK1104: cannot open file "sapi.lib"
Error executing link.exe.

I have no ideas where is wrong in the project configuration, Thanks for help!
------------------------------------------

#include <sapi.h>
#include <sphelper.h>


#pragma comment(lib,"ole32.lib")
#pragma comment(lib,"sapi.lib")

int main(int argc, char* argv[])
{
ISpVoice * pVoice = NULL;


if (FAILED(::CoInitialize(NULL)))
return FALSE;


HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice);
if( SUCCEEDED( hr ) )
{

CComPtr<ispstream> cpWavStream;
CComPtr<ispstreamformat> cpOldStream;
CSpStreamFormat OriginalFmt;
pVoice->GetOutputStream( &cpOldStream );
OriginalFmt.AssignFormat(cpOldStream);
hr = SPBindToFile( L"c:\\output.wav",SPFM_CREATE_ALWAYS,&cpWavStream,&OriginalFmt.FormatId(), \
OriginalFmt.WaveFormatExPtr() );
if( SUCCEEDED( hr ) )
{
pVoice->SetOutput(cpWavStream,TRUE);
WCHAR WTX[] = L"<voice required="\"gender=female\"">Hello world!";
pVoice->Speak(WTX, SPF_IS_XML, NULL);
pVoice->WaitUntilDone( INFINITE );

pVoice->Release();
pVoice = NULL;

}


}
::CoUninitialize();
return TRUE;
}



========================================================================


Have you ever made phones on the internet


========================================================================
AnswerRe: fatal error LNK1104: cannot open file Pin
Christian Graus15-Feb-07 18:06
protectorChristian Graus15-Feb-07 18:06 
GeneralRe: fatal error LNK1104: cannot open file Pin
NiceNaidu15-Feb-07 18:15
NiceNaidu15-Feb-07 18:15 
GeneralRe: fatal error LNK1104: cannot open file Pin
chocm15-Feb-07 18:15
chocm15-Feb-07 18:15 
AnswerRe: fatal error LNK1104: cannot open file Pin
chocm15-Feb-07 18:20
chocm15-Feb-07 18:20 
GeneralRe: fatal error LNK1104: cannot open file Pin
NiceNaidu15-Feb-07 18:27
NiceNaidu15-Feb-07 18:27 
GeneralRe: fatal error LNK1104: cannot open file Pin
David Crow16-Feb-07 3:22
David Crow16-Feb-07 3:22 
Questionatlstr.h Pin
gentleguy15-Feb-07 17:52
gentleguy15-Feb-07 17:52 
AnswerRe: atlstr.h Pin
Try15-Feb-07 18:02
Try15-Feb-07 18:02 
AnswerRe: atlstr.h Pin
Christian Graus15-Feb-07 18:07
protectorChristian Graus15-Feb-07 18:07 
Questionstationary drawing although scrolling Pin
cyn815-Feb-07 17:41
cyn815-Feb-07 17:41 
AnswerRe: stationary drawing although scrolling Pin
PJ Arends16-Feb-07 8:07
professionalPJ Arends16-Feb-07 8:07 
QuestionCPU Usage Pin
Try15-Feb-07 16:27
Try15-Feb-07 16:27 
AnswerRe: CPU Usage Pin
Waldermort15-Feb-07 16:53
Waldermort15-Feb-07 16:53 
GeneralRe: CPU Usage Pin
Try15-Feb-07 17:22
Try15-Feb-07 17:22 
QuestionRe: CPU Usage Pin
David Crow16-Feb-07 3:24
David Crow16-Feb-07 3:24 
AnswerRe: CPU Usage Pin
Try16-Feb-07 22:17
Try16-Feb-07 22:17 
QuestionRe: CPU Usage Pin
David Crow19-Feb-07 3:06
David Crow19-Feb-07 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.