Re: [fpc-pascal] Exception when trying to set a COM object property through OleVariant

2015-06-27 Thread Jonas Maebe
On 26/06/15 10:21, Lubos Pintes wrote: > I am using FPC 3.1.1. > I am playing with SAPI5. It almost works, but I am unable to set a Voice > of SPVoice object through OleVariant. > The following program works fine in Delphi 6, but an exception on line > 12 is raised when compiled by FPC: Please men

[fpc-pascal] Exception when trying to set a COM object property through OleVariant

2015-06-27 Thread Lubos Pintes
Hello, I am using FPC 3.1.1. I am playing with SAPI5. It almost works, but I am unable to set a Voice of SPVoice object through OleVariant. The following program works fine in Delphi 6, but an exception on line 12 is raised when compiled by FPC: program sapi; uses ActiveX, ComObj; var SP