[fpc-pascal] OT: what happened with the Lazarus mailing list?

2017-11-25 Thread Lubos Pintes
Hello, I don't know if the problem is somewhere on my side, but the latest message in Lazarus mailing list on gmane.org is from November 17. I also looked into web archive and the situation is the same. And I am unable to find more information about what happened. Also tried to subscribe, but

Re: [fpc-pascal] Silencing redundand FPC messages

2017-06-18 Thread Lubos Pintes
Perfect, thank you! Dňa 17. 6. 2017 o 16:05 Jonas Maebe napísal(a): On 17/06/17 12:27, Lubos Pintes wrote: But how can I get rid of "Target OS XXX:"? The parameter -vi- will disable all messages of the level "info", such as the above mentioned message and things

[fpc-pascal] Silencing redundand FPC messages

2017-06-17 Thread Lubos Pintes
Hello, I am compiling from command line. I am screen reader user relying on spoken output. I would like to minimize the output as much as possible, especially if the output is redundant. FPC outputs are concise and clean IMO, but some always-repeating things it outputs are just useless. One

[fpc-pascal] importtl and ignored [out, retval] parameters

2017-05-04 Thread Lubos Pintes
Hello, I wanted to import the UIAutomationClient type library. Thus I compiled the UIAutomationClient.idl to .tlb and then used importtl to convert it to pascal. Importtl converted this incorrectly, it ignored [out, retval] parameters on many places. For example, two examples from

Re: [fpc-pascal] WideStringReplace bug?

2017-03-28 Thread Lubos Pintes
Sorry I forgot the FPC version: 3.1.1 [2017/02/15] for i386 Dňa 28. 3. 2017 o 11:22 Lubos Pintes napísal(a): Hello,, I am developing a console program which receives input in UTF-8, but it is converted to WideString for communication with COM. I found a weird behaviour of the WideStringReplace

[fpc-pascal] WideStringReplace bug?

2017-03-28 Thread Lubos Pintes
Hello,, I am developing a console program which receives input in UTF-8, but it is converted to WideString for communication with COM. I found a weird behaviour of the WideStringReplace, and I extracted the small program below: program a; {$apptype console} uses SysUtils; var U:

Re: [fpc-pascal] googleapi package, TCalendarListResource.List, unhandled exception

2016-08-21 Thread Lubos Pintes
Hello Michael, Yes, I called that method. Dňa 21. 8. 2016 o 10:59 Michael Van Canneyt napísal(a): On Fri, 19 Aug 2016, Lubos Pintes wrote: Hello, I am not sure if this is useful or not. After some fiddling with compiler options, I was able to generate full line trace of exception I obtain

[fpc-pascal] googleapi package, TCalendarListResource.List, unhandled exception

2016-08-19 Thread Lubos Pintes
Hello, I am not sure if this is useful or not. After some fiddling with compiler options, I was able to generate full line trace of exception I obtain when I try to call the TCalendarListResource.List method. I logged the requests, so I can confirm that the request is issued, and data are

Re: [fpc-pascal] googleapiconv

2016-08-14 Thread Lubos Pintes
on Windows. I compiled one Lazarus from trunk, not sure which version exactly but I suppose it was something like 1.7. Dňa 13. 8. 2016 o 11:56 Michael Van Canneyt napísal(a): On Sat, 13 Aug 2016, Lubos Pintes wrote: Hello, It seems to me that all this is broken in some way. Well it may be my stupidity

Re: [fpc-pascal] googleapiconv

2016-08-13 Thread Lubos Pintes
Hello, It seems to me that all this is broken in some way. Well it may be my stupidity because I am receiving an Unhandled exception. I don't know how to generate useful trace, I am developing on Windows from command line. The lines I was able to see was GoogleService.pp, line 350 and

[fpc-pascal] Google Calendar API and unsupported exception

2016-08-09 Thread Lubos Pintes
Hello, I am again here with questions about Google API. I am currently creating a console application for testing. Because it doesn't work, I tried to compile a fresh FPC trunk in the hope that prpoblem was fixed there. I am trying to obtain a calendar list: Res :=

[fpc-pascal] Google API on Windows

2016-08-08 Thread Lubos Pintes
Hello list, Do I absolutely need the OpenSSL library if I want to use Google API under Windows? I am asking just in case there is something native I am not aware of. I would like to have just one binary if possible. Thanks ___ fpc-pascal maillist -

[fpc-pascal] Google API, OAuth2 and Windows

2016-08-05 Thread Lubos Pintes
Hello, I want to use Google Calendar API with FPC 3.0.0 under Windows. I grabbed necessary units from SVN, because it seems to me that they are not available under FPC 3.0.0 units. My question: how can I handle OAuth2? Do I need an external library like Synapse under Windows, or can I use

Re: [fpc-pascal] Assigning string constant to a WideString and the Format function

2015-12-24 Thread Lubos Pintes
; begin U := 'Hello'; W := U; SetString(S, @W[1], Length(W)); W := Format(WideString('%s'), [S]); Writeln(W); end. Dňa 23. 12. 2015 o 17:29 Mark Morgan Lloyd napísal(a): Lubos Pintes wrote: Hello Mark,The result isthe same, I tried it before I wrote my message.I even tried to temporarily

Re: [fpc-pascal] Assigning string constant to a WideString and the Format function

2015-12-23 Thread Lubos Pintes
I tried it now, and it doesn't work. I also tried all string variables changed to WideString. Dňa 23. 12. 2015 o 11:59 Michael Van Canneyt napísal(a): On Wed, 23 Dec 2015, Lubos Pintes wrote: Hello Mark, The result isthe same, I tried it before I wrote my message. I even tried to temporarily

Re: [fpc-pascal] Assigning string constant to a WideString and the Format function

2015-12-23 Thread Lubos Pintes
Morgan Lloyd napísal(a): Lubos Pintes wrote: Hello, I have a text in the WideString variable. I want to send this text to a SAPI5 synthesizer. I am doing this as follows: WideStr := Format('%s', [Pitch, Text]); Pitch is integer, Text is WideString. The result is incorrect, only a half of the Text

[fpc-pascal] Assigning string constant to a WideString and the Format function

2015-12-23 Thread Lubos Pintes
Hello, I have a text in the WideString variable. I want to send this text to a SAPI5 synthesizer. I am doing this as follows: WideStr := Format('%s', [Pitch, Text]); Pitch is integer, Text is WideString. The result is incorrect, only a half of the Text contents is copied to the result. Tested

[fpc-pascal] WideString version of the Format function

2015-12-22 Thread Lubos Pintes
Hello, Does FPC standard library have a WideString version of the Format function? Thanks ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] FPC 3.x for Windows and reading UTF-8 encoded text from standard input

2015-12-03 Thread Lubos Pintes
Hi, How can I read an UTF-8 encoded text under Windows? My Windows locale uses windows-1250 encoding. It seems to me that a conversion to ansi happens when I am reading from standard input, so the UTF-8 text is corrupted. Do I need to do something special for this to work? Thanks

[fpc-pascal] FPC 3.x for Windows and code page conversion

2015-11-23 Thread Lubos Pintes
Hello, I am developing a console application which receives an UTF-8 encoded text through stdin. The text is, after possible modification, sent to SAPI5. The SAPI5 generated interface wrappers have parameters of type string. In FPC 2.6.4, I used UTF8toANSI on various places and that worked

[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