[fpc-pascal] Microsoft SAPI on Freepascal

Marco van de Voort fpc at pascalprogramming.org
Mon Jun 26 20:37:16 CEST 2023


On 26-6-2023 20:26, Michael Van Canneyt via fpc-pascal wrote:
>
> I suspect COM is not properly initialized, and that Lazarus does this 
> for you.
> (it needs com for some components on windows)
>
> So, try adding unit windows to the uses clause and add
>
> CoInitialize(nil);
>
> as the first statement of your program.
>
>
(afaik 3.2.2's comobj does this automatically, in older version YMMV).




More information about the fpc-pascal mailing list