Re: [fpc-pascal] Pause Key

2023-04-15 Thread Virgo Pärna via fpc-pascal
ing as Pause status on PC keyboard. -- Virgo Pärna virgo.pa...@mail.ee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Dependency of OpenSSL 1.0.2 still in FPC 3.2.0 on some platforms?

2021-05-11 Thread Virgo Pärna via fpc-pascal
openssl support for Synapse. -- Virgo Pärna virgo.pa...@mail.ee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] SQLDB: Set port in TSQLConnector

2021-01-12 Thread Virgo Pärna via fpc-pascal
none in TSQLConnector. You can use HostName := ServerName/Port; -- Virgo Pärna virgo.pa...@mail.ee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] TProxyStream.Check always raises error.

2021-01-05 Thread Virgo Pärna via fpc-pascal
tract? -- Virgo Pärna virgo.pa...@mail.ee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-14 Thread Virgo Pärna via fpc-pascal
On Tue, 12 May 2020 11:05:15 +0200, Sven Barth via fpc-pascal wrote: > Virgo Pärna via fpc-pascal schrieb am >> >> May FPC 2.6.4 was configured to default to delphi or tp mode? In >> those modes @ is not required to assigne procedure/function to procvar. >>

Re: [fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

2020-05-11 Thread Virgo Pärna via fpc-pascal
On Tue, 05 May 2020 23:03:33 +0200, Rainer Stratmann wrote: > > But that worked a long time (2 years or so) with FPC 2.6.4 > May FPC 2.6.4 was configured to default to delphi or tp mode? In those modes @ is not required to assigne procedure/function to procvar. -- Vi

Re: [fpc-pascal] Using for-loop index variable after loop

2016-10-10 Thread Virgo Pärna
On Mon, 10 Oct 2016 14:07:35 +0200, Vojtěch Čihák wrote: >       then Break; >   Isn't leaving for loop with break only case, where loop variable will keep the value. Otherwise it is undefined. But it does make the code more confusing. -- Virgo Pärna virgo.pa

Re: [fpc-pascal] LowerCase vs. UnicodeLowerCase

2016-10-07 Thread Virgo Pärna
So, which version is correct one? Delphi LowerCase also only works on ascii characters. -- Virgo Pärna virgo.pa...@mail.ee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Blockread blockwrite var vs out parameters

2015-12-18 Thread Virgo Pärna
On Wed, 16 Dec 2015 23:21:27 +0100, Jonas Maebe wrote: > > As far as I know, Delphi only has errors and warnings. It does not have > separate categories such as notes and hints, unlike FPC. > Delphi does have hints. But no notes. -- Virgo Pärna virgo.p

Re: [fpc-pascal] How to trap exception raised within dll written in Delphi

2015-11-20 Thread Virgo Pärna
On Fri, 20 Nov 2015 16:48:29 +0800, Dennis wrote: > > Is it possible to trap exception raised within dll? > Exception should not cross dll boundry. So you should handle them inside the dll. -- Virgo Pärna virgo.pa...@mail.ee ___ f

Re: [fpc-pascal] raw printing throught USB port / WINDOWS

2015-01-13 Thread Virgo Pärna
mt('Error opening printer "%s"', [APrinterName]); try StartDocPrinter(PHandle, 1, @DocInfo); StartPagePrinter(PHandle); WritePrinter(PHandle, @APrintData[1], Length(APrintData), Written); EndPagePrinter(PHandle); EndDocPrinter(PHandle); finally

Re: [fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-02 Thread Virgo Pärna
f type PChar, then there is not reason to take an address of first element to pass it to PChar. Passing wariable itselt is much clearer. And for ansistring MyReturnStr casting it to PChar would have worked also. After setting it to required length with SetLength. -- Virgo Pärna virgo.p

Re: [fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-02 Thread Virgo Pärna
verwriting internal string structures AFAIK. -- Virgo Pärna virgo.pa...@mail.ee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Lazarus 1.2.2 Release

2014-04-24 Thread Virgo Pärna
or_SEH.29 >> for more details. > ? This does not say, that 64 bit version is not available (it actually is). It just suggests to avoid using it, unless necessary. It says nowhere, that 64 bit download links are invalid on purpose. -- Vi

Re: [fpc-pascal] Lazarus 1.2.2 Release

2014-04-24 Thread Virgo Pärna
On Wed, 23 Apr 2014 16:34:54 +0200, Mattias Gaertner wrote: > The Lazarus team is glad to announce the release of Lazarus 1.2.2. > Windows (64 bit) download points to 32 bit download. -- Virgo Pärna virgo.pa...@mail.ee ___ fpc-pascal ma

Re: [fpc-pascal] THandle in code that must compile also with Delphi

2014-03-20 Thread Virgo Pärna
to use same code, if you compare result against INVALID_HANDLE_VALUE. And you should be able safely cast return value to THandle for that (and use variable of that type). I really don't know, how it would work on linux, because sys_open seems to return int there. -- Virgo

[fpc-pascal] Re: FPC with case insensitive file system under Linux

2012-02-27 Thread Virgo Pärna
s are less problematic. -- Virgo Pärna virgo.pa...@mail.ee ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-10 Thread Virgo Pärna
omewhat like constantly calling Randomize. In the example code randseed was dependant of randomize output - which might or might not be as awful as randomize. And the graphical output was just really good illustration, why it was bad. -- Virgo Pärna virgo.p

[fpc-pascal] Re: Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Virgo Pärna
the screen, but were mostly along the diagonal of the screen. So I'd guess, that setting randseed multiple times could be actually bad for randomness of results. Or maybe modern algorithms are better at situations like this? -- Virgo Pärna virgo.pa...@mail.ee