Re: [fpc-pascal] GetSaveFileNameA limited to 100 characters in default name

2021-06-20 Thread Jean SUZINEAU via fpc-pascal
Le 21/06/2021 à 03:04, James Richters a écrit : Var     ... DefaulSaveAsFileName: Ansistring; SaveAsFileNameBuffer: array[0..Max_Path+1] of char;    ... Begin DefaulSaveAsFileName := 'X:\Something with a really really really long long long long file name to see if there is still a bug with

Re: [fpc-pascal] How to check if a network is available?

2021-06-20 Thread Jean SUZINEAU via fpc-pascal
Ping uses ICMP protocol. I don't have currently Indy installed on my machines, but I think you can find pascal components for ICMP client and even ICMP server. I think that this way you can do a single "ping", a single ICMP request. It seems that Synapse has ping  support too:

Re: [fpc-pascal] Will the size of an executable depend on the uses clause

2021-06-20 Thread Florian Klämpfl via fpc-pascal
> Am 16.06.2021 um 18:07 schrieb Dennis Lee Bieber via fpc-pascal > : > > On Wed, 16 Jun 2021 13:15:10 +0200 (CEST), Michael Van Canneyt via > fpc-pascal > declaimed the following: > >> ~$ ldd /usr/bin/ls >> linux-vdso.so.1 (0x7ffc3f9c1000) >> libselinux.so.1 =>

Re: [fpc-pascal] How to check if a network is available?

2021-06-20 Thread Bo Berglund via fpc-pascal
On Fri, 18 Jun 2021 08:34:43 -0400, James Richters via fpc-pascal wrote: >Do a Ping to an address on the network to see if it's connected? > I would need a ping with only one execution so I can put it into a loop and break after a successful ping or break after some timeout value. Seems like