Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-02

OLE

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aleksey Y. Ulasevich (STAKANOV

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