[fpc-pascal] Re: Overloading properties

2013-06-22 Thread leledumbo
> Of course I could rename these methods and add a prefix like Set..., but I want to know why this limitation is Can you create a variable and a function with the same name under the same scope? If you could answer that, you'll know why. As something you might want to think about: properties call

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-22 Thread Marcos Douglas
On Sat, Jun 22, 2013 at 10:39 AM, Ludo Brands wrote: > On 06/22/2013 03:20 PM, Marcos Douglas wrote: >> On Sat, Jun 22, 2013 at 4:35 AM, Ludo Brands wrote: >>> Can you confirm it works with dbsetlname(FDBLogin, PChar('MyApp'), 5) ? >>> If that is the case I'll make a patch for dblib.pp and will a

Re: [fpc-pascal] How to use UPnP to create port forward in the router?

2013-06-22 Thread Dmitry Boyarintsev
Should this help http://en.wikipedia.org/wiki/Internet_Gateway_Device_Protocol On Saturday, June 22, 2013, Dennis Poon wrote: > ** > I know some software can use UPnP to add a port forwarding rule to the > router automatically. I want to do the same with FPC. > Anyone has any idea on how to do

Re: [fpc-pascal] FPC under CentOS x64

2013-06-22 Thread Jonas Maebe
On 22 Jun 2013, at 20:24, Robert Wolfe wrote: > On 06/22/2013 09:38 AM, Jonas Maebe wrote: >> And >> file `which fpc` > > [robert@shell ~]$ file 'which fpc' > which fpc: cannot open `which fpc' (No such file or directory) FWIW, it should have been file `which fpc` not file 'which fpc'

Re: [fpc-pascal] FPC under CentOS x64

2013-06-22 Thread Robert Wolfe
When I redid the command another way, I got this: [robert@shell ~]$ file /usr/bin/fpc /usr/bin/fpc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, for GNU/Linux 2.4.0, stripped Okay, smack me hard in the head now... [robert@shell ~]$ uname -a Linux shell.rivernet.us 2

Re: [fpc-pascal] FPC under CentOS x64

2013-06-22 Thread Robert Wolfe
[robert@shell ~]$ file 'which fpc' which fpc: cannot open `which fpc' (No such file or directory) On 06/22/2013 09:38 AM, Jonas Maebe wrote: On 22 Jun 2013, at 16:33, Robert Wolfe wrote: On 06/22/2013 08:50 AM, Jonas Maebe wrote: On 22 Jun 2013, at 15:46, Robert Wolfe wrote: [robert@shell

[fpc-pascal] How to use UPnP to create port forward in the router?

2013-06-22 Thread Dennis Poon
I know some software can use UPnP to add a port forwarding rule to the router automatically. I want to do the same with FPC. Anyone has any idea on how to do so without using Microsoft's API? I want a linux approach, possibly cross platform is possible. Thanks. Dennis

[fpc-pascal] Overloading properties

2013-06-22 Thread Michael Fuchs
Hello, I try to define classes with properties an additional fluent setters. Unfortunally the compiler does not allow the fluent methods have the same names as the properties. project1.lpr(18,24) Error: overloaded identifier "MyString" isn't a function Of course I could rename these methods

Re: [fpc-pascal] FPC under CentOS x64

2013-06-22 Thread Jonas Maebe
On 22 Jun 2013, at 16:33, Robert Wolfe wrote: > On 06/22/2013 08:50 AM, Jonas Maebe wrote: >> On 22 Jun 2013, at 15:46, Robert Wolfe wrote: >> >>> [robert@shell bin]$ fpc >>> bash: /usr/bin/fpc: cannot execute binary file >>> [robert@shell bin]$ fp >>> bash: /usr/bin/fp: cannot execute binary fi

Re: [fpc-pascal] FPC under CentOS x64

2013-06-22 Thread Robert Wolfe
On 06/22/2013 08:50 AM, Jonas Maebe wrote: On 22 Jun 2013, at 15:46, Robert Wolfe wrote: Hi all! Just installed this and am getting the following message whenever I go to try to run any of the binaries that are included in the package (fp, ppcx64, etc): [robert@shell bin]$ fpc bash: /usr/bi

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-22 Thread Michael Van Canneyt
On Sat, 22 Jun 2013, Ludo Brands wrote: On 06/22/2013 03:20 PM, Marcos Douglas wrote: On Sat, Jun 22, 2013 at 4:35 AM, Ludo Brands wrote: Can you confirm it works with dbsetlname(FDBLogin, PChar('MyApp'), 5) ? If that is the case I'll make a patch for dblib.pp and will add an application pa

Re: [fpc-pascal] FPC under CentOS x64

2013-06-22 Thread Jonas Maebe
On 22 Jun 2013, at 15:46, Robert Wolfe wrote: > Hi all! Just installed this and am getting the following message whenever I > go to try to run any of the binaries that are included in the package (fp, > ppcx64, etc): > > [robert@shell bin]$ fpc > bash: /usr/bin/fpc: cannot execute binary file

[fpc-pascal] FPC under CentOS x64

2013-06-22 Thread Robert Wolfe
Hi all! Just installed this and am getting the following message whenever I go to try to run any of the binaries that are included in the package (fp, ppcx64, etc): [robert@shell bin]$ fpc bash: /usr/bin/fpc: cannot execute binary file [robert@shell bin]$ fp bash: /usr/bin/fp: cannot execute b

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-22 Thread Ludo Brands
On 06/22/2013 03:20 PM, Marcos Douglas wrote: > On Sat, Jun 22, 2013 at 4:35 AM, Ludo Brands wrote: >> Can you confirm it works with dbsetlname(FDBLogin, PChar('MyApp'), 5) ? >> If that is the case I'll make a patch for dblib.pp and will add an >> application parameter to mssqlconn. > > Yes, I co

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-22 Thread Marcos Douglas
On Sat, Jun 22, 2013 at 4:35 AM, Ludo Brands wrote: > On 06/21/2013 09:12 PM, Marcos Douglas wrote: >> On Fri, Jun 21, 2013 at 4:08 PM, Marcos Douglas wrote: >>> On Fri, Jun 21, 2013 at 3:59 PM, Ludo Brands wrote: Ah, just found out that DBSETAPP is wrongly defined for FreeTDS. It shou

Re: [fpc-pascal] Non-Latin (non-English) identifiers for COM automation

2013-06-22 Thread Max Vlasov
Sven, thanks, I did something like this. Luckily both Delphi and fpc have a function variable VarDispProc doing all the job. So my function calling a name without parameters look very simple type TVarDispInvoke = procedure(Result: PVariant; const Instance: Variant; CallDesc: PCallDesc

Re: [fpc-pascal] Re: SQLdb: TMSSQLConnection: using Instance name in Host

2013-06-22 Thread Ludo Brands
On 06/21/2013 09:12 PM, Marcos Douglas wrote: > On Fri, Jun 21, 2013 at 4:08 PM, Marcos Douglas wrote: >> On Fri, Jun 21, 2013 at 3:59 PM, Ludo Brands wrote: >>> Ah, just found out that DBSETAPP is wrongly defined for FreeTDS. >>> It should be 5 instead of 4 according to include/sybdb.h. >>> Try