[fpc-pascal] Microsoft SAPI on Freepascal

James Richters james.richters at productionautomation.net
Tue Jun 27 01:42:01 CEST 2023


I was using OleVarient and Varient.  How can I check to see if CreateOleObject was successful?
James
>It sounds like " SpVoice := CreateOleObject('SAPI.SpVoice');" is failing and then SpVoice is nil ?
>May be try with an OleVariant instead of a simple Variant ? (i.e declare var SpVoice: OleVariant; )
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230626/e8fec627/attachment-0001.htm>


More information about the fpc-pascal mailing list