Hi James, I am not familiar with variants and Ole objects, sorry about that. I found some people using code with Ole objects and it that seems to work, can you chack if it applies to your case?
https://stackoverflow.com/questions/17970573/using-word-ole-in-lazarus-freepascal Best, R On Sun, Jun 25, 2023 at 2:25 PM <fpc-pascal-requ...@lists.freepascal.org> wrote: > Send fpc-pascal mailing list submissions to > fpc-pascal@lists.freepascal.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > or, via email, send a message with subject or body 'help' to > fpc-pascal-requ...@lists.freepascal.org > > You can reach the person managing the list at > fpc-pascal-ow...@lists.freepascal.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of fpc-pascal digest..." > > > Today's Topics: > > 1. Re: Microsoft SAPI on Freepascal (Rafael Pican?o) > 2. Re: SDL2 Event Registration (and case statements) > (Rafael Pican?o) > 3. Re: Microsoft SAPI on Freepascal (Rafael Pican?o) > 4. Re: Microsoft SAPI on Freepascal (James Richters) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 25 Jun 2023 13:33:24 -0300 > From: Rafael Pican?o <cpicanc...@gmail.com> > To: fpc-pascal@lists.freepascal.org > Subject: Re: [fpc-pascal] Microsoft SAPI on Freepascal > Message-ID: > <CAGpuCi712ve6bRsXdVn=y7cFTuMSWSw4K2ewe65yu1F= > h9m...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi James, > > > SpVoice : Variant; > > SpVoice := CreateOleObject('SAPI.SpVoice') > > The Free Pascal Variant type does not handle interfaces by default. Take a > look: > > https://wiki.freepascal.org/Variant > > Best, > R > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230625/ae39a571/attachment-0001.htm > > > > ------------------------------ > > Message: 2 > Date: Sun, 25 Jun 2023 13:42:00 -0300 > From: Rafael Pican?o <cpicanc...@gmail.com> > To: fpc-pascal@lists.freepascal.org > Subject: Re: [fpc-pascal] SDL2 Event Registration (and case > statements) > Message-ID: > <CAGpuCi4Dq6PkNs=xz3Vsy=ppwNVe-BdSad8oTVg=+ > hsjvo9...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Thanks Guilhermo, > > Just to clarify, I do have a limited number of events. Lets say, 2 events. > So, using the SDL_RegisterEvents function, is it possible to define these > two new events as normal constants so they will be known at compile time > and will make Free Pascal case statements happy? > > Best, > R > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230625/c9a4b1e9/attachment-0001.htm > > > > ------------------------------ > > Message: 3 > Date: Sun, 25 Jun 2023 13:52:17 -0300 > From: Rafael Pican?o <cpicanc...@gmail.com> > To: fpc-pascal@lists.freepascal.org > Subject: Re: [fpc-pascal] Microsoft SAPI on Freepascal > Message-ID: > < > cagpuci4jaaqdqnrvjgonezaos61mvuf-okabx92bm9stjo2...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi James, > > Sorry, I missed the following reference: > > "Remark Dispatch interface support for variants is currently broken in the > compiler." (https://www.freepascal.org/docs-html/ref/refsu20.html) > > Best, > R > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230625/08ee32d3/attachment-0001.htm > > > > ------------------------------ > > Message: 4 > Date: Sun, 25 Jun 2023 13:24:46 -0400 > From: "James Richters" <james.richt...@productionautomation.net> > To: <cpicanc...@gmail.com>, "'FPC-Pascal users discussions'" > <fpc-pascal@lists.freepascal.org> > Subject: Re: [fpc-pascal] Microsoft SAPI on Freepascal > Message-ID: <015d01d9a789$f1097fb0$d31c7f10$@productionautomation.net> > Content-Type: text/plain; charset="utf-8" > > So it?s broken? It seems like the link you provided is trying to show a > workaround, but I don?t know how I could apply that. > > >"Remark Dispatch interface support for variants is currently broken in > the compiler." (https://www.freepascal.org/docs-html/ref/refsu20.html) > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230625/c33bf375/attachment.htm > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > > > ------------------------------ > > End of fpc-pascal Digest, Vol 228, Issue 30 > ******************************************* >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal