Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-23 Thread Michael Van Canneyt
On Sun, 24 Apr 2016, Marcos Douglas wrote: On Sun, Apr 24, 2016 at 2:40 AM, Michael Van Canneyt wrote: I've found the problem: The Application.Port cannot be setted. I think this property (Port) is only used in a self-contained server application. Am I right? You are right, OK, thank

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-23 Thread Marcos Douglas
On Sun, Apr 24, 2016 at 2:40 AM, Michael Van Canneyt wrote: > >> I've found the problem: >> The Application.Port cannot be setted. >> >> I think this property (Port) is only used in a self-contained server >> application. Am I right? > > > You are right, OK, thanks. Now I have another problem on

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-23 Thread Michael Van Canneyt
On Sun, 24 Apr 2016, Marcos Douglas wrote: On Sun, Apr 24, 2016 at 1:31 AM, Marcos Douglas wrote: Hi, I'm trying to use FastCGI on IIS without success. https://www.iis.net/configreference/system.webserver/fastcgi My environment is: - FPC 2.6.5 - Lazarus 1.5 - IIS - Windows 10 The CGI prot

Re: [fpc-pascal] FastCGI on Windows IIS

2016-04-23 Thread Marcos Douglas
On Sun, Apr 24, 2016 at 1:31 AM, Marcos Douglas wrote: > Hi, > > I'm trying to use FastCGI on IIS without success. > https://www.iis.net/configreference/system.webserver/fastcgi > > My environment is: > - FPC 2.6.5 > - Lazarus 1.5 > - IIS > - Windows 10 > > The CGI protocol works fine, but FastCGI

[fpc-pascal] FastCGI on Windows IIS

2016-04-23 Thread Marcos Douglas
Hi, I'm trying to use FastCGI on IIS without success. https://www.iis.net/configreference/system.webserver/fastcgi My environment is: - FPC 2.6.5 - Lazarus 1.5 - IIS - Windows 10 The CGI protocol works fine, but FastCGI not. I got an error 500. If I change the fpFCGI to fpcgi — and comment the A

[fpc-pascal] c-blocks odd hints

2016-04-23 Thread Dmitry Boyarintsev
Hello, The compiler seems to generate odd hints: Local absolutevar "FPC_BLOCK_SELF" is not used Here's the code. if Assigned(gc.extendedGamepad) then gc.extendedGamepad.setValueChangedHandler(GamePadChange) else if Assigned(gc.gamepad) then // <-- hint here gc.gamepad.setVa

Re: [fpc-pascal] Linux: resolving hostnames in local network

2016-04-23 Thread Andreas Klausmann
Thanks, cnetdb.gethostbyname() works fine (at least on my raspberry). :) Creating a wrapper function is recently my work-around for an actual ping component (since linux doesn't seem to have a corresponding component like ping.dll and I want to ping as non-root) Am 23.04.2016 um 12:42 schrieb Ma

Re: [fpc-pascal] Linux: resolving hostnames in local network

2016-04-23 Thread Graeme Geldenhuys
On 2016-04-23 10:23, Andreas Klausmann wrote: > Testhost is reachable from console by hostname: ping testhost.local -> > success (resolved in background by avahi) Not sure, but you could always create a wrapper function or class around the OS 'ping' command, or nslookup. Read the program results a

Re: [fpc-pascal] Linux: resolving hostnames in local network

2016-04-23 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > You will need to use the C library routines for this. (which is in unit cnetdb in somewhat recent FPC's) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/

Re: [fpc-pascal] Linux: resolving hostnames in local network

2016-04-23 Thread Michael Van Canneyt
On Sat, 23 Apr 2016, Andreas Klausmann wrote: Hi, how can I resolve hostnames in a local (private) network under linux? Both gethostbyname() and THostResolver work fine for google.com etc, but not for local hostnames like testhost.local. Testhost is reachable from console by hostname: ping tes

[fpc-pascal] Linux: resolving hostnames in local network

2016-04-23 Thread Andreas Klausmann
Hi, how can I resolve hostnames in a local (private) network under linux? Both gethostbyname() and THostResolver work fine for google.com etc, but not for local hostnames like testhost.local. Testhost is reachable from console by hostname: ping testhost.local -> success (resolved in background by a

Re: [fpc-pascal] Unit path search order

2016-04-23 Thread Martin Schreiber
On Saturday 23 April 2016 10:40:58 Jonas Maebe wrote: > Martin Schreiber wrote: > > http://www.freepascal.org/docs-html/current/user/usersu7.html#x21-280003. > >1.2 states: > > " > > You can add a directory to the unit search path with the (-Fu (see page > > 100)) option. Every occurrence of one of

Re: [fpc-pascal] Unit path search order

2016-04-23 Thread Jonas Maebe
Martin Schreiber wrote: http://www.freepascal.org/docs-html/current/user/usersu7.html#x21-280003.1.2 states: " You can add a directory to the unit search path with the (-Fu (see page 100)) option. Every occurrence of one of these options will insert a directory to the unit search path. i.e. the