OLE

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

OLE

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 

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal