Re: [fpc-pascal] SqlDB vs Zeos: TDataset.FieldDefs[].Size

2013-04-21 Thread Graeme Geldenhuys
On 2013-04-20 10:11, Ludo Brands wrote: TFieldDef.Size is expressed in bytes. Zeos, IIRC, assumes a conversion from any charset to utf8 could be made. Since UTF8 is up to 4 bytes per char, a VarChar(10) can need up to 40 bytes to be represented in the I assumed it has something to do with

[fpc-pascal] fpGUI Toolkit v1.0 release for FPC 2.6.2

2013-04-21 Thread Graeme Geldenhuys
fpGUI v1.0 is available I'm glad to announce the 1.0 release of fpGUI. This has been over a years worth of development, so a complete list of changes will be to big to list here. Here are just some highlights: - Improvements to the UI (forms) Designer - Lot of

Re: [fpc-pascal] Statically link library

2013-04-21 Thread Vittorio Giovara
On 20/apr/2013, at 11:55, Darius Blaszyk dhkblas...@zeelandnet.nl wrote: Hi, I'm linking a C and FPC program but I keep on getting undifined symbols (see example below). Error: Undefined symbol: _strcpy Sofar I have added: {$linklib msvcrt} {$linklib gcc} What other libraries should

Re: [fpc-pascal] Statically link library

2013-04-21 Thread Marco van de Voort
In our previous episode, Vittorio Giovara said: {$linklib gcc} What other libraries should I add? BTW, I'm compiling the C library with MinGW. You need to instruct fpc to use gcc instead of default ld when you link c/pas code statically. Fpc can't call gcc. This is because gcc

Re: [fpc-pascal] Statically link library

2013-04-21 Thread Vittorio Giovara
On Sun, Apr 21, 2013 at 2:36 PM, Marco van de Voort mar...@stack.nl wrote: In our previous episode, Vittorio Giovara said: {$linklib gcc} What other libraries should I add? BTW, I'm compiling the C library with MinGW. You need to instruct fpc to use gcc instead of default ld when

Re: [fpc-pascal] Mipsel compilation: changing elf flags?!

2013-04-21 Thread Mark Morgan Lloyd
Reinier Olislagers wrote: See this forum thread: http://lazarus.freepascal.org/index.php/topic,20664.msg119960.html#msg119960 Forum user ocye got mipsel binaries, but the ELF flags apparently need to be changed due to a bug in older Linux kernels. How can this be done? In addition, is there

Re: [fpc-pascal] fpGUI Toolkit v1.0 release for FPC 2.6.2

2013-04-21 Thread Zaher Dirkey
1 - I have the source from Git, how to start without download the binary? 2 - What the best demo to open and start new project? ​I have a new project​ i like to build it on fpgui small one :) On Sat, Apr 20, 2013 at 9:16 PM, Graeme Geldenhuys gra...@geldenhuys.co.ukwrote: fpGUI v1.0 is

[fpc-pascal] The 2.6.2 RPM and Deb archives are still in preparation

2013-04-21 Thread Ched
Hello All, Some words about me: I'm a pascalist for now more than 25 years. I developped many embedded applications, but I don't feel well putting the hands on the compiler... About The 2.6.2 RPM and Deb archives are still in preparation seen on the the download page about linux/386, can I

[fpc-pascal] GetCurrentDir

2013-04-21 Thread Mattias Gaertner
Hi, On one of my Linux machines GetCurrentDir returns '', when the working directory is a samba share. Is this a feature or a bug? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-21 Thread Toru Takubo
(2013/04/20 23:06), Marcos Douglas wrote: On Sat, Apr 20, 2013 at 2:47 AM, Toru Takubo tak...@e-parcel.co.jp wrote: (2013/04/19 21:22), Marcos Douglas wrote: (snip) With analogical thinking, I expected that the following might work for TSQLQuery in FPC: var r,i: Integer; DBQ:

[fpc-pascal] ppcjvm linking jar

2013-04-21 Thread Andrew Haines
Hi, I am stumped about how to link a program such as the example trange1.pp into a jar file. I've followed the instructions here: http://wiki.freepascal.org/FPC_JVM and the command java -cp /full/path/to/fpcjvm/units/jvm-java/rtl:. trange1 works fine. But I would like to make it a jar

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-21 Thread Marcos Douglas
On Sun, Apr 21, 2013 at 10:05 PM, Toru Takubo tak...@e-parcel.co.jp wrote: (2013/04/20 23:06), Marcos Douglas wrote: On Sat, Apr 20, 2013 at 2:47 AM, Toru Takubo tak...@e-parcel.co.jp wrote: (2013/04/19 21:22), Marcos Douglas wrote: (snip) With analogical thinking, I expected that the

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-21 Thread Toru Takubo
(2013/04/22 10:46), Marcos Douglas wrote: On Sun, Apr 21, 2013 at 10:05 PM, Toru Takubo tak...@e-parcel.co.jp wrote: (2013/04/20 23:06), Marcos Douglas wrote: On Sat, Apr 20, 2013 at 2:47 AM, Toru Takubo tak...@e-parcel.co.jp wrote: (2013/04/19 21:22), Marcos Douglas wrote: (snip)

Re: [fpc-pascal] How can retrive value from OUT parameter?

2013-04-21 Thread Marcos Douglas
On Sun, Apr 21, 2013 at 11:18 PM, Toru Takubo tak...@e-parcel.co.jp wrote: (snip) I will try to proceed. On the other hand, I'm wondering if TSQLQuery (or TMSSQLConnection) would natively support OUTPUT parameter and RETURN_VALUE... Well, even using Delphi (4~7) I never used