Re: [Lazarus] Compiling IDE issues using FreeBSD 9.1 FPC 2.6.0

2013-02-04 Thread Graeme Geldenhuys
On 2013-02-03 22:22, Mattias Gaertner wrote:
 ./components/lazutils/fileutil.pas
 ./docs/xml/lazutils/fileutil.xml
 ./lcl/units/x86_64-freebsd/fileutil.ppu
 ./lcl/units/x86_64-freebsd/fileutil.o
 
 Where is this fileutil.ppu coming from?
 
 Maybe the gmake clean does not work under FreeBSD?

No idea.  I normally don't trust 'make clean' etc commands, so I did a
'git clean -d -f', seeing that I used the git repository from Github.
This removed any and all files or directories that are not tracked by
the repository. After that a 'gmake bigide' worked.

Thinking about it a bit more, it might have been my own doing. Maybe it
was because after I cloned the Lazarus repository from Github, it leaves
you in the wrong branch ('master' instead of 'upstream'). [I still need
to fix that] I think I might have tried to compile Lazarus while in the
wrong (very old) branch, then realised I was in the wrong branch -
switched to 'upstream', and then did another build. Thus leaving some
compiled units in locations that confused the build process. The 'git
clean' would have resolved this problem.

...few minutes later...

I just cloned the repository again, made sure I was in the correct
'upstream' branch, and did a 'gmake bigide' and everything went fine. So
I guess it must have been left-over compiled units from being in the
wrong branch before.

Sorry for the false alarm. It seems the only minor issue now, is that
the readme file needs to be updated to say that FreeBSD users must use
'gmake' instead of 'make'. I've already updated the wiki with this info.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Clearing a project

2013-02-04 Thread Mark Morgan Lloyd
Is there an easy way of clearing all stored state out of the .lps/lpi 
files, i.e. leaving no history of opened units/forms etc. except 
possibly a reference to the .lpr or the main-form unit?


I'm mindful of my current issue with files being referenced over 
different paths (when such a thing is possible, e.g. because of the 
presence of symlinks) but also it would seem like a good thing to do 
before publishing a project as source.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clearing a project

2013-02-04 Thread Mattias Gaertner

Mark Morgan Lloyd markmll.laza...@telemetry.co.uk hat am 4. Februar 2013 um
12:08 geschrieben:
 Is there an easy way of clearing all stored state out of the .lps/lpi
 files, i.e. leaving no history of opened units/forms etc. except
 possibly a reference to the .lpr or the main-form unit?

You can save session data separate in the lps file.
Close project, delete lps, open project.


 I'm mindful of my current issue with files being referenced over
 different paths (when such a thing is possible, e.g. because of the
 presence of symlinks) but also it would seem like a good thing to do
 before publishing a project as source.

Do you mean
Project / Publish Project
?

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread ik
On Mon, Feb 4, 2013 at 1:34 PM, silvioprog silviop...@gmail.com wrote:
 Hello,

 In FPC, I'm trying to load a ASCII content and onvert it to integer, but,
 without success. In PHP I do it easily.

 I send two files in attached:

 1. php - demo in PHP working fine (the demo uses unpack function:
 http://www.php.net/manual/en/function.unpack.php);
 2. fpc - demo in FPC partially implemented;

 So, how to do it in FPC?

Take a look at my fp-msgpack[1] (I need to rewrite it, because the way
that array and maps works), but it does exactly what pack and upack
does.


 Thank you!

 ps. I tried the Unpack function of FPC, but I don't know how to use it.

 --
 Silvio Clécio
 My public projects - github.com/silvioprog

[1] https://github.com/ik5/fp-msgpack


 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clearing a project

2013-02-04 Thread Mark Morgan Lloyd

Mattias Gaertner wrote:

Mark Morgan Lloyd markmll.laza...@telemetry.co.uk hat am 4. Februar 2013 um
12:08 geschrieben:

Is there an easy way of clearing all stored state out of the .lps/lpi
files, i.e. leaving no history of opened units/forms etc. except
possibly a reference to the .lpr or the main-form unit?


You can save session data separate in the lps file.
Close project, delete lps, open project.


Did that yesterday, but it still leaves at least one file in the .lpi 
(which was the one that we didn't want saved, under the circumstances).



I'm mindful of my current issue with files being referenced over
different paths (when such a thing is possible, e.g. because of the
presence of symlinks) but also it would seem like a good thing to do
before publishing a project as source.


Do you mean
Project / Publish Project


I was thinking about the general case, including svn to a public 
repository such as Berlios.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clearing a project

2013-02-04 Thread Mattias Gaertner

Mark Morgan Lloyd markmll.laza...@telemetry.co.uk hat am 4. Februar 2013 um
13:01 geschrieben:
 Mattias Gaertner wrote:
  Mark Morgan Lloyd markmll.laza...@telemetry.co.uk hat am 4. Februar 2013
  um
  12:08 geschrieben:
  Is there an easy way of clearing all stored state out of the .lps/lpi
  files, i.e. leaving no history of opened units/forms etc. except
  possibly a reference to the .lpr or the main-form unit?
 
  You can save session data separate in the lps file.
  Close project, delete lps, open project.

 Did that yesterday, but it still leaves at least one file in the .lpi
 (which was the one that we didn't want saved, under the circumstances).

What was left, what should not be there?


  I'm mindful of my current issue with files being referenced over
  different paths (when such a thing is possible, e.g. because of the
  presence of symlinks) but also it would seem like a good thing to do
  before publishing a project as source.
 
  Do you mean
  Project / Publish Project

 I was thinking about the general case, including svn to a public
 repository such as Berlios.

The lps is normally not stored in the svn repository.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread leledumbo
 ps. I tried the Unpack function of FPC, but I don't know how to use it.

Unpack() is for unpacking previously Pack()-ed data



--
View this message in context: 
http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Unpack-of-PHP-tp4029070p4029074.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clearing a project

2013-02-04 Thread Mark Morgan Lloyd

Mattias Gaertner wrote:

Mark Morgan Lloyd markmll.laza...@telemetry.co.uk hat am 4. Februar 2013 um
13:01 geschrieben:

Mattias Gaertner wrote:

Mark Morgan Lloyd markmll.laza...@telemetry.co.uk hat am 4. Februar 2013
um
12:08 geschrieben:

Is there an easy way of clearing all stored state out of the .lps/lpi
files, i.e. leaving no history of opened units/forms etc. except
possibly a reference to the .lpr or the main-form unit?

You can save session data separate in the lps file.
Close project, delete lps, open project.

Did that yesterday, but it still leaves at least one file in the .lpi
(which was the one that we didn't want saved, under the circumstances).


What was left, what should not be there?


If I do a close-all, save-all, exit and then delete the .lps, when I 
bring up Lazarus it's displaying a tab DbConfigCode2 pointing at the 
incorrect /usr/local/src/inifiles/trunk/dbconfigcode2.pas.


The issue in this case appears to be that in the .lpi file there's

Units Count=13
..
  Unit12
Filename Value=..\..\inifiles\trunk\dbconfigcode2.pas/
IsPartOfProject Value=True/
ComponentName Value=DbConfigFrame/
HasResources Value=True/
ResourceBaseClass Value=Frame/
UnitName Value=DbConfigCode2/
  /Unit12
/Units

which, if I understand things correctly, shouldn't be there since I've 
enables .lps support.



I'm mindful of my current issue with files being referenced over
different paths (when such a thing is possible, e.g. because of the
presence of symlinks) but also it would seem like a good thing to do
before publishing a project as source.

Do you mean
Project / Publish Project

I was thinking about the general case, including svn to a public
repository such as Berlios.


The lps is normally not stored in the svn repository.


I know, but as I've said above there's a list of units stored in the 
.lpi as well. How does one clear this?


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clearing a project

2013-02-04 Thread Mattias Gaertner
On Mon, 04 Feb 2013 13:58:01 +
Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote:

 Mattias Gaertner wrote:
  Mark Morgan Lloyd markmll.laza...@telemetry.co.uk hat am 4. Februar 2013 
  um
  13:01 geschrieben:
  Mattias Gaertner wrote:
  Mark Morgan Lloyd markmll.laza...@telemetry.co.uk hat am 4. Februar 2013
  um
  12:08 geschrieben:
  Is there an easy way of clearing all stored state out of the .lps/lpi
  files, i.e. leaving no history of opened units/forms etc. except
  possibly a reference to the .lpr or the main-form unit?
  You can save session data separate in the lps file.
  Close project, delete lps, open project.
  Did that yesterday, but it still leaves at least one file in the .lpi
  (which was the one that we didn't want saved, under the circumstances).
  
  What was left, what should not be there?
 
 If I do a close-all, save-all, exit and then delete the .lps, when I 
 bring up Lazarus it's displaying a tab DbConfigCode2 pointing at the 
 incorrect /usr/local/src/inifiles/trunk/dbconfigcode2.pas.
 
 The issue in this case appears to be that in the .lpi file there's
 
  Units Count=13
 ..
Unit12
  Filename Value=..\..\inifiles\trunk\dbconfigcode2.pas/
  IsPartOfProject Value=True/
  ComponentName Value=DbConfigFrame/
  HasResources Value=True/
  ResourceBaseClass Value=Frame/
  UnitName Value=DbConfigCode2/
/Unit12
  /Units
 
 which, if I understand things correctly, shouldn't be there since I've 
 enables .lps support.

The above data are *not* session data. Session data is what file is
open, cursor position, break points, jump history, 
The above lpi tells, that ..\..\inifiles\trunk\dbconfigcode2.pas
belongs to the project.
The Project Inspector will show the same.
You can remove this file from the project via the Project Inspector or
Project / Remove from Project.

 
  I'm mindful of my current issue with files being referenced over
  different paths (when such a thing is possible, e.g. because of the
  presence of symlinks) but also it would seem like a good thing to do
  before publishing a project as source.
  Do you mean
  Project / Publish Project
  I was thinking about the general case, including svn to a public
  repository such as Berlios.
  
  The lps is normally not stored in the svn repository.
 
 I know, but as I've said above there's a list of units stored in the 
 .lpi as well. How does one clear this?

This list gives the IDE the clues what files are important and what not.
So, you should not clear it, you should clean it up and add all
missing project units. For example via the Project Inspector.

Mattias
 

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread silvioprog
2013/2/4 ik ido...@gmail.com

 On Mon, Feb 4, 2013 at 1:34 PM, silvioprog silviop...@gmail.com wrote:
  Hello,
 
  In FPC, I'm trying to load a ASCII content and onvert it to integer, but,
  without success. In PHP I do it easily.
 
  I send two files in attached:
 
  1. php - demo in PHP working fine (the demo uses unpack function:
  http://www.php.net/manual/en/function.unpack.php);
  2. fpc - demo in FPC partially implemented;
 
  So, how to do it in FPC?

 Take a look at my fp-msgpack[1] (I need to rewrite it, because the way
 that array and maps works), but it does exactly what pack and upack
 does.

 
  Thank you!
 
  ps. I tried the Unpack function of FPC, but I don't know how to use it.
 
  --
  Silvio Clécio
  My public projects - github.com/silvioprog

 [1] https://github.com/ik5/fp-msgpack


I have not found the line that does the conversion (from ASCII to integer).
The your code is big. I will need to study it to understand it.
In PHP was so easy (only two lines), that I would have swore that something
native and easy to use with Free Pascal.

Thank you!

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus 1.0.6 Release

2013-02-04 Thread Mattias Gaertner
The Lazarus team is glad to announce the release of Lazarus 1.0.6.

This is a bug fix release. Here is the list of changes:
http://wiki.lazarus.freepascal.org/Lazarus_1.0_fixes_branch#Fixes_for_1.0.6_.28Merged.29

The release is available for download at the SourceForge download page:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the Lazarus 1.0.6 directory.

Minimum requirements:
Windows:   98, 2k, XP, Vista, 7, 32 or 64bit
FreeBSD/Linux: gtk 2.8 or qt4.5, 32 or 64bit
Mac OS X:  10.5, LCL only 32bit, non LCL apps can be 64bit

This release has been built with fpc 2.6.0 (the former release 1.0.4 was built 
with that too).

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_0_6

For people who are blocked by SF, the Lazarus releases from sourceforge are 
mirrored at:
ftp://freepascal.dfmk.hu/pub/lazarus/releases/
and later at (after some time for synchronization)
http://michael-ep3.physik.uni-halle.de/Lazarus/releases/
and
http://mirrors.iwi.me/lazarus/


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread silvioprog
2013/2/4 leledumbo leledumbo_c...@yahoo.co.id

  ps. I tried the Unpack function of FPC, but I don't know how to use it.

 Unpack() is for unpacking previously Pack()-ed data


So, I'm trying to improve the PowerPDF to support PNG images, but I dont
know how to convert ASCII to Integer.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread silvioprog
2013/2/4 silvioprog silviop...@gmail.com

 ... but I dont know how to convert ASCII to Integer.


... to convert ASCII pack to Integer.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread silvioprog
2013/2/4 silvioprog silviop...@gmail.com

 2013/2/4 leledumbo leledumbo_c...@yahoo.co.id

  ps. I tried the Unpack function of FPC, but I don't know how to use it.

 Unpack() is for unpacking previously Pack()-ed data


 So, I'm trying to improve the PowerPDF to support PNG images, but I dont
 know how to convert ASCII to Integer.


Solved:

  function ReadMWord(AStream: TStream): Word;
  type
TMotorolaWord = record
  case Byte of
0: (Value: Word);
1: (Byte1, Byte2: Byte);
  end;
  var
MW: TMotorolaWord;
  begin
AStream.Read(MW.Byte2, SizeOf(Byte));
AStream.Read(MW.Byte1, SizeOf(Byte));
Result := MW.Value;
  end;

:)

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread David Knaack
I may not understand the scope of your question, but could you use the swap
function?

http://www.freepascal.org/docs-html/rtl/system/swap.html

Like so (edited in email, not compile checked):

function ReadMWord(AStream: TStream): Word;
  var
MW: Word
  begin
AStream.Read(MW, SizeOf(Word));
Result := Swap(MW);
  end;


On Mon, Feb 4, 2013 at 9:13 AM, silvioprog silviop...@gmail.com wrote:

 2013/2/4 silvioprog silviop...@gmail.com

 2013/2/4 leledumbo leledumbo_c...@yahoo.co.id

  ps. I tried the Unpack function of FPC, but I don't know how to use it.

 Unpack() is for unpacking previously Pack()-ed data


 So, I'm trying to improve the PowerPDF to support PNG images, but I dont
 know how to convert ASCII to Integer.


 Solved:

   function ReadMWord(AStream: TStream): Word;
   type
 TMotorolaWord = record
   case Byte of
 0: (Value: Word);
 1: (Byte1, Byte2: Byte);
   end;
   var
 MW: TMotorolaWord;
   begin
 AStream.Read(MW.Byte2, SizeOf(Byte));
 AStream.Read(MW.Byte1, SizeOf(Byte));
 Result := MW.Value;
   end;

 :)

 --
 Silvio Clécio
 My public projects - github.com/silvioprog

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread silvioprog
2013/2/4 David Knaack davidkna...@gmail.com

 I may not understand the scope of your question, but could you use the
 swap function?

 http://www.freepascal.org/docs-html/rtl/system/swap.html

 Like so (edited in email, not compile checked):

 function ReadMWord(AStream: TStream): Word;
   var
 MW: Word
   begin
 AStream.Read(MW, SizeOf(Word));
 Result := Swap(MW);
   end;


Perfect! :)

Thank you very much!

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread Vincent Snijders
2013/2/4 silvioprog silviop...@gmail.com:
 2013/2/4 David Knaack davidkna...@gmail.com

 I may not understand the scope of your question, but could you use the
 swap function?

 http://www.freepascal.org/docs-html/rtl/system/swap.html

 Like so (edited in email, not compile checked):

 function ReadMWord(AStream: TStream): Word;
   var
 MW: Word
   begin
 AStream.Read(MW, SizeOf(Word));
 Result := Swap(MW);
   end;


 Perfect! :)

 Thank you very much!

Instead of swap, you may use beton, so that it works on big endian cpus too:
http://www.freepascal.org/docs-html/rtl/system/beton.html

Vincent

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] How to control components order on the palette?

2013-02-04 Thread Alexander Klenin
As far as I understand, conponents are now listed in the order of registration,
which depends on the (alphabetical?) order of packages.

Is there any way to control that?
Specifically, I'd like TGUIConnectorBGRA component, which is
currently placed first
on the Chart page, to be placed last (or somewhere in the middle) instead.

--
Alexander S. Klenin

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to control components order on the palette?

2013-02-04 Thread zeljko
On Monday 04 of February 2013 16:55:10 Alexander Klenin wrote:
 As far as I understand, conponents are now listed in the order of
 registration, which depends on the (alphabetical?) order of packages.
 
 Is there any way to control that?
 Specifically, I'd like TGUIConnectorBGRA component, which is
 currently placed first
 on the Chart page, to be placed last (or somewhere in the middle)
 instead.
 

It kills me too. Each rebuild of lazarus makes another placement of component 
tabs (except for standard tabs).

zeljko

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread silvioprog
2013/2/4 Vincent Snijders vincent.snijd...@gmail.com

 2013/2/4 silvioprog silviop...@gmail.com:
  2013/2/4 David Knaack davidkna...@gmail.com
 
  I may not understand the scope of your question, but could you use the
  swap function?
 
  http://www.freepascal.org/docs-html/rtl/system/swap.html
 
  Like so (edited in email, not compile checked):
 
  function ReadMWord(AStream: TStream): Word;
var
  MW: Word
begin
  AStream.Read(MW, SizeOf(Word));
  Result := Swap(MW);
end;
 
 
  Perfect! :)
 
  Thank you very much!

 Instead of swap, you may use beton, so that it works on big endian cpus
 too:
 http://www.freepascal.org/docs-html/rtl/system/beton.html

 Vincent


Many thanks guy, worked like a charm too! :) I'll use BEtoN instead Swap.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Unpack of PHP

2013-02-04 Thread silvioprog
2013/2/4 silvioprog silviop...@gmail.com

 2013/2/4 Vincent Snijders vincent.snijd...@gmail.com

 2013/2/4 silvioprog silviop...@gmail.com:
  2013/2/4 David Knaack davidkna...@gmail.com
 
  I may not understand the scope of your question, but could you use the
  swap function?
 
  http://www.freepascal.org/docs-html/rtl/system/swap.html
 
  Like so (edited in email, not compile checked):
 
  function ReadMWord(AStream: TStream): Word;
var
  MW: Word
begin
  AStream.Read(MW, SizeOf(Word));
  Result := Swap(MW);
end;
 
 
  Perfect! :)
 
  Thank you very much!

 Instead of swap, you may use beton, so that it works on big endian cpus
 too:
 http://www.freepascal.org/docs-html/rtl/system/beton.html

 Vincent


 Many thanks guy, worked like a charm too! :) I'll use BEtoN instead Swap.


Oops... And this is the full code:

program project1;

{$mode objfpc}{$H+}

uses
  Classes,
  SysUtils;

  function ReadInt(AStream: TStream): Word;
  begin
Result := 0;
AStream.Read(Result, SizeOf(Word));
Result := BEtoN(Result);
  end;

var
  VFile: TFileStream;
begin
  VFile := TFileStream.Create('data.ascii', fmOpenRead or fmShareDenyWrite);
  try
VFile.Seek(2, 0);
WriteLn(ReadInt(VFile));
VFile.Seek(6, 0);
WriteLn(ReadInt(VFile));
  finally
VFile.Free;
  end;
end.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Where is TlrCodeReport in Laz 1.0.6 for Win7 64 bit?

2013-02-04 Thread Alejandro Gonzalo
I can't find it in the list of packages, or under c:\lazarus\components
 
A. G.--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Where is TlrCodeReport in Laz 1.0.6 for Win7 64 bit?

2013-02-04 Thread Alejandro Gonzalo
Nevermind, I see it's now in the LazReport pallete.  But where is samples or 
instructions on how to use it?



 From: Alejandro Gonzalo parkingspac...@yahoo.com
To: Lazarus mailing list lazarus@lists.lazarus.freepascal.org 
Sent: Monday, February 4, 2013 1:26 PM
Subject: [Lazarus] Where is TlrCodeReport in Laz 1.0.6 for Win7 64 bit?
  

I can't find it in the list of packages, or under c:\lazarus\components

A. G.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


   --
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] ANN: Firmbox a FPC and Lazarus based project

2013-02-04 Thread Helmut Hartl

Hello Freepascal and Lazarus Community !

Some of you may know us as sponsors of the
freepascal and lazarus community. We provide
hosting, storage and virtual machines
to the projects.

Today I have an exciting announcement to make,
we startet a crowdfunding project on indiegogo.

It's about a combined storage and hypervisor
as a turnkey ready product, which we want to
fully release as open source solution.

We worked for nearly 2 Years on it now.
It's based on SmartOS (Illumos/ former Opensolaris)
and scales up to petabytes of capacity
and to very high IOPS rates. But it's not
only for datacenters as a cloud solution,
we want to bring it to the homes.

The interesting freepascal related part is
that we used freepascal to develop our
web application server and lazarus as
the IDE. The server part is 100%
freepascal code.

Another thing is that as soon as we have
the time to, we will also donate one
of the business systems as new
virtualisation platform for freepascal
and lazarus related projects.

If you are interested in the technical part
or want to get a solution for yourself
we would be very happy if you have a look at:

http://igg.me/firmbox

greets,

helmut


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus