//text_to_wave.cpp
#include
#pragma comment (lib, "ole32.lib") # Pragma Comment (Lib, "SAPI.LIB")
INT Main (int Argc, char * argv []) {ispVoice * pvoice = null; // COM initialization: if (Failed (:: Coinitialize (Null)) Return False; // Get IsPVoice: HRESULT HR = CoCreateInstance (CLSID_SPVoice , NULL, CLSCTX_ALL, IID_ISpVoice, (void **) & pVoice); if (SUCCEEDED (hr)) {CComPtr
IF (succeeded (hr)) {pvoice-> setOutput (cpwavstream, true); wchar wtx [] = L "
/ / Release COM resources: :: couninitialize (); return true;}