[fpc-pascal] OLE

Aleksey Y. Ulasevich (STAKANOV) platinum at umail.ru
Tue Feb 14 08:34:08 CET 2006


I do:

program speech;
uses
  windows,comobj,ActiveX;
var
  voice:OLEVariant;
begin
  CoInitialize(nil);
  voice:=CreateOLEObject('SAPI.SpVoice');
  voice.Speak('Hello',0);
end.

Compiler output:

speech.pas(9,8) Error: Illegal expression
speech.pas(9,8) Fatal: Syntax error, ";" expected but "identifier SPEAK" 
found

OLE is not work?

PS. Windows XP, fpc 2.0.2

-- 
Aleksey Y. Ulasevich (STAKANOV)
icq:26493224 http://stakanov.by.ru 




More information about the fpc-pascal mailing list