davy zhang | 1 Sep 05:52
Picon

Re: why "error expanding embedded variable" ?

finally I made it work! it should be gmake not make in the make path,
just like before. I've successfully installed LNet component and
started my first unix server application. so much thanks for your time
and patience to walk me through.

2008/8/31 davy zhang <davyzhang <at> gmail.com>:
> there is blank, I never changed this place~, so by default it's blank
>
> Should I specified the filename there ?
>
> On Sun, Aug 31, 2008 at 6:50 PM, Mattias Gaertner
> <nc-gaertnma <at> netcologne.de> wrote:
>> On Sun, 31 Aug 2008 18:24:30 +0800
>> "davy zhang" <davyzhang <at> gmail.com> wrote:
>>
>>> Thanks so much for the information, I indeed installed fpc2.2.0
>>> instead of 2.2.2 because the port version is 2.2.0
>>>
>>> Finally I successfully installed lazarus on freebsd!
>>>
>>> this is the first time I managed to install application on bsd system
>>>
>>> but... I still get a question. when I use the Tools -> "Build Lazarus"
>>> menu command from the Ide
>>>
>>> I get an error "make: illegal option -- w "
>>
>> What shows Environment / Environment Options .. / Files / Make path?
>>
>> Mattias
(Continue reading)

Reenen Laurie | 1 Sep 07:29
Picon

Re: procedure FloatToDecimal

Procedure FloatToDecimal(Out Result: TFloatRec; Value: Extended; Precision, Decimals : integer);

The Precision, and Decimals work together to ensure the rounding etc.

So lets say you want to have float to decimal, and have 5 "digits"...  And you do it on a value of 2 then the result will be
2.00000

If you only want a precision 2 but want decimals 5, and run it for pi, you will get
3.14000

So general rule is to have your precision higher than your digits, and you'll have good "rounding".

Hmmm... My test program shows some funnies:

procedure TForm1.FormDblClick ( Sender : TObject ) ;
var t : TFloatRec;
begin
  FloatToDecimal(t,pi,5,3);
  ShowMessage(inttostr(t.Exponent)+'.'+t.Digits);
end;

Shows 3.1432 -- not 3.143 as expected...

FloatToDecimal(t,pi,2,6);
Showed, 3.14

(not 3.140000) as I expected...



On Sat, Aug 30, 2008 at 4:19 AM, Héctor Fiandor Rosario <hfiandor <at> infomed.sld.cu> wrote:
Dear sirs:

I need to convert a Float to a number with two decimal places in a Lazarus
Project for Windows..

I am thinking to use the following procedure:

Procedure FloatToDecimal(Out Result: TFloatRec; Value: Extended; Precision, Decimals : integer);

begin
  FloatToDecimal(Result,Value,fvExtended,Precision,Decimals);
end;

but I dont know what to write in some of the arguments.

Thanks in advance for your help,

yours truly,

Ing. Héctor F. Fiandor
hfiandor <at> infomed.sld.cu

_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus



--
o__
,_.>/ _
(_)_\(_)_______
...speed is good
_______________
I believe five out of four people have a problem with fractions.
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Luca Olivetti | 1 Sep 08:42
Picon
Gravatar

Re: Lazarus & Databases under OSX

En/na Giuseppe Luigi Punzi Ruiz ha escrit:
> Hi,
> 
> I asked this on LAzarus Forums, but I will ask on this way too.
> 
> I need to do some little projects using SQLite and Firebird (probably). 
> I would like to run this applications on Windows&Mac.
> 
> I tried to install ZeosDBO without success, getting the error:
> Users/glpunzi/desarrollo/Lazarus/ZEOSDBO-6.6.3-stable/src/plain/ZPlainLoader.pas(97,22) 
> Fatal: Can't find unit libc used by ZPlainLoader 

[...]

> Lazarus and FPC are the stable versions. 2.2.0 for FPC, and 0.9.24 beta 
> for IDE.

I'd suggest using fpc 2.2.2 and a snapshot of lazarus. I'm using the 
same combination (zeosdbo-6.6.3 with sqlite, fpc 2.2.2, svn lazarus) 
under windows and linux (alas, no osx) with apparent[*] success.
If you don't feel like compiling lazarus from svn, you can find the 
snapshots here:
http://www.hu.freepascal.org/lazarus/

[*]I've only done limited testing with a relatively simple project where 
I previously used the svn version of zeos.

Bye
--

-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004      Fax +34 93 5883007
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Favicon
Gravatar

Re: Lazarus & Databases under OSX

I will try when back to home.

Thanks.

Luca Olivetti escribió:
> En/na Giuseppe Luigi Punzi Ruiz ha escrit:
>   
>> Hi,
>>
>> I asked this on LAzarus Forums, but I will ask on this way too.
>>
>> I need to do some little projects using SQLite and Firebird (probably). 
>> I would like to run this applications on Windows&Mac.
>>
>> I tried to install ZeosDBO without success, getting the error:
>> Users/glpunzi/desarrollo/Lazarus/ZEOSDBO-6.6.3-stable/src/plain/ZPlainLoader.pas(97,22) 
>> Fatal: Can't find unit libc used by ZPlainLoader 
>>     
>
> [...]
>
>   
>> Lazarus and FPC are the stable versions. 2.2.0 for FPC, and 0.9.24 beta 
>> for IDE.
>>     
>
> I'd suggest using fpc 2.2.2 and a snapshot of lazarus. I'm using the 
> same combination (zeosdbo-6.6.3 with sqlite, fpc 2.2.2, svn lazarus) 
> under windows and linux (alas, no osx) with apparent[*] success.
> If you don't feel like compiling lazarus from svn, you can find the 
> snapshots here:
> http://www.hu.freepascal.org/lazarus/
>
>
> [*]I've only done limited testing with a relatively simple project where 
> I previously used the svn version of zeos.
>
> Bye
>   

_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Graeme Geldenhuys | 1 Sep 15:03
Picon
Gravatar

toggle Hidden output in Messages window

Hi,

Is there a way to toggle the verbosity level in the Messages window?

At the moment, the only way I can see the ALL the outputlines, is to
use the popup menu, copy (with hidden lines) to the clipboard and then
paste into a editor.

I would like to sometimes see all (including hidden) messages in the
Messages window.

Regards,
  - Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Graeme Geldenhuys | 1 Sep 15:09
Picon
Gravatar

UTF8ToSys function???

Hi,

I'm trying to compile the tools/lazdatadesktop application and have
quite a bit of trouble...

I have Lazarus v0.9.25 r16273M i386-linux-gtk and tried to use FPC
2.2.0, FPC 2.2.3 (r11538).  Michael van Canneyt said that
lazdatadesktop should compile fine with FPC 2.2.0 but that doesn't
seem to be the case any more.

I got issues in "regdbexport.pp" and "reglazdatadict.pp" with IFDEF's
being incorrect. They were easy to resolve.

The next issue I got was: Identifier not found "UTF8ToSys"

Michael said he didn't add that code.... So anybody got a clue as to
what version of FPC has "UTF8ToSys" defined???

----------------[ Michael van Canneyt wrote: ]-----------------------

> Then I got the following error:
>
>   dicteditor.pp(672,29) Error: Identifier not found "UTF8ToSys"
>
> And the code is below...
>
> procedure TDataDictEditor.LoadFromFile(AFileName: String);
> begin
>   FDD.LoadFromFile(UTF8ToSys(AFileName));
>   ShowDictionary;
>   SetCaption;
> end;
>
>
> Any ideas in what version of FPC "UTF8ToSys" is defined?  I'm still
> using FPC 2.2.3 (r11538).

Hell no, I definitely didn't put that code there, probably one of
the Lazarus folks did that. I suggest you put

----------------------[  end  ]------------------------

Regards,
  - Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Graeme Geldenhuys | 1 Sep 15:32
Picon
Gravatar

Delphi 2009 says goodbye to Windows 9x and WinNT 4

Hi,

How does FPC/Lazarus stand regarding this?  I remember Felipe mention
that it is possible to support Win9x, or maybe I didn't understand him
correctly?

-------- Original Message --------
Subject: Re: Can Delphi 2009 be used for Windows 9x at all?
Date: Thu, 28 Aug 2008 16:11:09 -0700
From: Nick Hodges <nick.hodges <at> codegear.com>
Organisation: Embarcadero
Newsgroups: embarcadero.public.delphi.non-technical
References: <8069 <at> forums.codegear.com>

Arthur Hoornweg wrote:

> I'm just wondering if the RTL and VCL of Delphi 2009 allow the
> compiled executables and DLL's to run under Win9x if the developer
> refrains from using any NT-specific functions or components.

No -- EXE's compiled with D2009 won't work on Win9X at all.  Win9X
doesn't understand Unicode.

--

-- 
Nick Hodges
Delphi Product Manager - Embarcadero
http://blogs.codegear.com/nickhodges
--------------------------[  end  ]-------------------

Regards,
  - Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Martin Friebe | 1 Sep 15:35
Picon

Bug 0011564 and next release 0.9.26 ?

http://bugs.freepascal.org/view.php?id=11564

Just to draw some attention to it, as I don't know if it was noticed.
I wouldn't normally do this (drawing attention), but in this case I make 
the exception, because it is a crashing bug, and I therefore believe  it 
should be fixed in 0.9.26.

I know it is "only" a crash while closing Lazarus. It is still annoying, 
if you have console output and for example mem-leak checking. This leads 
to large time-consuming log dumps to the console, and costs time on 
lazarus restarts.

I have attached (to the bug) a patch that fixes the issue. If you choose 
to apply it, you may (if you want) leave the bug open, or create a child.
This is the patch deals with the current situation. But in future 
existing providers may be re-used (as they can be passed in as argument) 
and the danger of the bug re-occurring may exist.
A full solution would require both objects to notify each other of their 
destruction, so all references can be cleared in time . This requires an 
extension of the interface. And this is not likely to happen for 0.9.26

The current fix is still correct, and should be applied, even with the 
"full solution". The current code also "leaks" provider objects (they 
only are destroyed on closing Lazarus). By changing the owner of them 
they are now destroyed together with the Html object.

Martin

_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

wile64 | 1 Sep 15:50
Picon

Re: Color change don't work in TImage (windows)

Hi,

It works better after the holidays.

Thanks,
 
--
Laurent.

"If debugging is the art of removing bugs, then programming must be the art of creating!"

My Components: http://wiki.lazarus.freepascal.org/Wile64
French Forum : http://lazforum-fr.tuxfamily.org/index.php
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Picon

Re: Delphi 2009 says goodbye to Windows 9x and WinNT 4

On Mon, Sep 1, 2008 at 10:32 AM, Graeme Geldenhuys
<graemeg.lists <at> gmail.com> wrote:
> How does FPC/Lazarus stand regarding this?  I remember Felipe mention
> that it is possible to support Win9x, or maybe I didn't understand him
> correctly?

Lazarus already supports unicode in Win9x using a "best effort"
approach since months. It's all explained in the wiki:

http://wiki.lazarus.freepascal.org/LCL_Unicode_Support#Guidelines

Nick answered with what can be considered a half true. Win9x do not
understand unicode, but you could convert the string before giving it
to it. Which leads us to consider that the real reason is that
codegear simply does not want to support win9x.

--

-- 
Felipe Monteiro de Carvalho
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Gmane