Re: [lazarus] Sockets and Lazarus + WinCE

2007-11-22 Thread Alvise Nicoletti

Daniel Rincón García ha scritto:

Can I use the *sockets* components to make an application for WinCE?

Regards.


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.2/1142 - Release Date: 20/11/2007 17.44
  

Are you referring to the external LNet component?

If yes, LNet works perfectly on WinCE in all it's parts.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Google's Android OS :)

2007-11-22 Thread Razvan Adrian Bogdan
Google is creating a revolution in the mobile equipment market, their
new OS (Android) is based on Linux and is OpenSource, they are
planning to support a wide range of devices and are willing to pay
lot's of money to people making apps for the new OS. I wonder if
Lazarus and FPC could have an impact here :)


Google Announces $10 Million Android Developer Challenge
The $10 million total in the Android Developer Challenge will be
distributed equally between the Android Developer Challenge I and II.

http://www.google.com/intl/en/press/pressrel/20071112_android_challenge.html
http://edition.cnn.com/2007/TECH/ptech/11/14/google.cell.prize.ap/index.html
http://www.toptechnews.com/story.xhtml?story_id=023001CPJZOA

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus]

2007-11-22 Thread Razvan Adrian Bogdan
Vasily I. Volchenko [EMAIL PROTECTED] wrote:
 I'll change it (but it is a bad idea to save text files only in utf-8 in 
 linux, but in ansi in windows, besides, utf8 is very rarely used in final
 Russian files, when for internal functions it is well). Lazarus-ccr may be a 
 good place (it is in one of my sf.net projects, but it is a little part).

Why not use UTF8 everywhere, it's supported even by notepad and you
can write in multiple languages in the same document, i wonder if
there is a great size increase when writing cyrilic. Lazarus itself
will use UTF8 everywhere even on windows.

Razvan

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Sockets and Lazarus + WinCE

2007-11-22 Thread Razvan Adrian Bogdan
On Nov 22, 2007 12:32 AM, Daniel Rincón García [EMAIL PROTECTED] wrote:
 Can I use the sockets components to make an application for WinCE?

LNet, Indy, Synapse, i think all of them work on WinCE and most
platforms, use the one which is best for you :)

Razvan

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Luca Olivetti

En/na Razvan Adrian Bogdan ha escrit:

Google is creating a revolution in the mobile equipment market, their
new OS (Android) is based on Linux and is OpenSource, they are
planning to support a wide range of devices and are willing to pay
lot's of money to people making apps for the new OS. I wonder if
Lazarus and FPC could have an impact here :)


Considering that application for android have to be written in java I 
somewhat doubt it.


Bye
--
Luca

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Víctor R. Ruiz
  Hi:

2007/11/22, Luca Olivetti [EMAIL PROTECTED]:
 Considering that application for android have to be written in java I
 somewhat doubt it.

  Even worse, Google uses its own virtual machine.

  Greetings,

-- 
Víctor R. Ruiz [EMAIL PROTECTED] | - Todos estos momentos se perderán
http://rvr.blogalia.com/   |   como lágrimas en la lluvia

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread willem

Well object pascal lies between java and c++.
android uses the eclipse ide.
but antlr has also an eclipse plugin.
object pascal and java grammars are available for antlr.

so we can bridge the gap between java and object pascal.

regards

Razvan Adrian Bogdan wrote:

Google is creating a revolution in the mobile equipment market, their
new OS (Android) is based on Linux and is OpenSource, they are
planning to support a wide range of devices and are willing to pay
lot's of money to people making apps for the new OS. I wonder if
Lazarus and FPC could have an impact here :)


Google Announces $10 Million Android Developer Challenge
The $10 million total in the Android Developer Challenge will be
distributed equally between the Android Developer Challenge I and II.

http://www.google.com/intl/en/press/pressrel/20071112_android_challenge.html
http://edition.cnn.com/2007/TECH/ptech/11/14/google.cell.prize.ap/index.html
http://www.toptechnews.com/story.xhtml?story_id=023001CPJZOA

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread willem

Víctor R. Ruiz wrote:

  Hi:

2007/11/22, Luca Olivetti [EMAIL PROTECTED]:
  

Considering that application for android have to be written in java I
somewhat doubt it.


Well I do hava android running on my pc as well as lazarus.
  

with a objesct pascal to java translator it must be possible.

regards


  Even worse, Google uses its own virtual machine.

  Greetings,

  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Paul Ishenin

Víctor R. Ruiz пишет:

  Hi:

2007/11/22, Luca Olivetti [EMAIL PROTECTED]:

Considering that application for android have to be written in java I
somewhat doubt it.


  Even worse, Google uses its own virtual machine.


Lets teach fpc to generate java byte code for that machine :)

Best regards,
Paul Ishenin.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Razvan Adrian Bogdan
On Nov 22, 2007 11:36 AM, Luca Olivetti [EMAIL PROTECTED] wrote:
 Considering that application for android have to be written in java I
 somewhat doubt it.

There must be a way to run apps natively or it's just another java OS ...

Razvan

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Luca Olivetti

En/na Paul Ishenin ha escrit:

Víctor R. Ruiz пишет:

  Hi:

2007/11/22, Luca Olivetti [EMAIL PROTECTED]:

Considering that application for android have to be written in java I
somewhat doubt it.


  Even worse, Google uses its own virtual machine.


Lets teach fpc to generate java byte code for that machine :)


Let's[*] teach it to generate arm eabi code, so we can write apps for 
maemo instead ;-)


[*] well, that us should be a you since I don't have the slightest 
idea on how to do it ;-)


Bye
--
Luca

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Damien Gerard


On Nov 21, 2007, at 6:16 PM, Bogusław Brandys wrote:


Luiz Americo Pereira Camara wrote:

Vincent Snijders wrote:

Damien Gerard schreef:


I use SVn with my projects in lazarus.

I added the file project.lpi. This file is sent nearly at each  
commit and always provides conflicts with others team members.
However I believe the file is needed due to there are some  
settings for the project.


Is there a way to avoid this ?


Do you store session information in a different file (.lps). Don't  
add this file to svn. See project options - Session.
Another problem i face is that when you open a project saved in  
Win32 in a Linux machine the lpi file is changed because of the  
PathDelim even if you don't change the project options. The inverse  
(Linux  win32) is also true.

This leads to unnecessary file commits.
From some time i always check the changes in lpi files to see if  
worth commiting

Luiz


What if inside project would be used only one PathDelim and IDE  
resolve it into correct one on each platform ?




Can Ressources files be safely removed from a svn repository for  
Lazarus Projects ?



--
Damien Gerard
[EMAIL PROTECTED]



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Damien Gerard


On Nov 21, 2007, at 6:16 PM, Bogusław Brandys wrote:


Luiz Americo Pereira Camara wrote:

Vincent Snijders wrote:

Damien Gerard schreef:


I use SVn with my projects in lazarus.

I added the file project.lpi. This file is sent nearly at each  
commit and always provides conflicts with others team members.
However I believe the file is needed due to there are some  
settings for the project.


Is there a way to avoid this ?


Do you store session information in a different file (.lps). Don't  
add this file to svn. See project options - Session.
Another problem i face is that when you open a project saved in  
Win32 in a Linux machine the lpi file is changed because of the  
PathDelim even if you don't change the project options. The inverse  
(Linux  win32) is also true.

This leads to unnecessary file commits.
From some time i always check the changes in lpi files to see if  
worth commiting

Luiz


What if inside project would be used only one PathDelim and IDE  
resolve it into correct one on each platform ?




Anymore, is the session for projects works well under Windows ? Under  
Windows the lpr file is always modified :(  (no problems under Linux)



--
Damien Gerard
[EMAIL PROTECTED]



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Marco van de Voort
On Thu, Nov 22, 2007 at 04:52:34PM +0700, Paul Ishenin wrote:
 2007/11/22, Luca Olivetti [EMAIL PROTECTED]:
 Considering that application for android have to be written in java I
 somewhat doubt it.
   Even worse, Google uses its own virtual machine.
 
 Lets teach fpc to generate java byte code for that machine :)

Have a look at

http://www.freepascal.org/faq.html#dotnet

specially the last paragraph.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Damien Gerard


On Nov 22, 2007, at 11:27 AM, Damien Gerard wrote:



On Nov 21, 2007, at 6:16 PM, Bogusław Brandys wrote:


Luiz Americo Pereira Camara wrote:

Vincent Snijders wrote:

Damien Gerard schreef:


I use SVn with my projects in lazarus.

I added the file project.lpi. This file is sent nearly at each  
commit and always provides conflicts with others team members.
However I believe the file is needed due to there are some  
settings for the project.


Is there a way to avoid this ?


Do you store session information in a different file (.lps).  
Don't add this file to svn. See project options - Session.
Another problem i face is that when you open a project saved in  
Win32 in a Linux machine the lpi file is changed because of the  
PathDelim even if you don't change the project options. The  
inverse (Linux  win32) is also true.

This leads to unnecessary file commits.
From some time i always check the changes in lpi files to see if  
worth commiting

Luiz


What if inside project would be used only one PathDelim and IDE  
resolve it into correct one on each platform ?




Anymore, is the session for projects works well under Windows ?  
Under Windows the lpr file is always modified :(  (no problems under  
Linux)



May be it is related to the slashes.


--
Damien Gerard
[EMAIL PROTECTED]



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Latest reviosn fails on Windows

2007-11-22 Thread Damien Gerard


On Nov 21, 2007, at 10:23 AM, Damien Gerard wrote:



On Nov 21, 2007, at 10:13 AM, Jeff Steinkamp wrote:





C:\lazarusmake
makefile:3434: warning: overriding commands for target `examples'
makefile:3394: warning: ignoring old commands for target `examples'
make -C lcl all
make[1]: Entering directory `C:/lazarus/lcl'
C:/lazarus/fpc/bin/i386-win32/rm.exe -f units/i386-win32/ 
alllclunits.ppu
C:/lazarus/fpc/bin/i386-win32/ppc386.exe -gl -Fu. -Fuforms - 
Fuwidgetset  -Fiinclu

de -FE. -FUunits/i386-win32 -di386 alllclunits.pp
Free Pascal Compiler version 2.2.0 [2007/09/09] for i386
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Win32 for i386
Compiling alllclunits.pp
alllclunits.pp(31,1) Fatal: Can't find unit System used by  
AllLCLUnits

Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directory `C:/lazarus/lcl'
make: *** [lcl] Error 2

C:\lazarus




it might be intresting to note that I have a similar problem on my  
Linux Box with GTK2 and gettng the following on that box.


gtkwidgetset.inc(618,48) Error identifer not found  
panjo_layout_set_font_description




With the lastest snapshot under Windows (Lazarus-0.9.25- 
fpc-2.2.1-20071121-win32.exe) I have the following error :


Ressource TIFileDataProvider not found.



The error disappears with the snapshots 20071122.


A screenshot is available if needed.





--
Damien Gerard
[EMAIL PROTECTED]



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Mattias Gaertner
On Thu, 22 Nov 2007 11:25:54 +0100
Damien Gerard [EMAIL PROTECTED] wrote:

 
 On Nov 21, 2007, at 6:16 PM, Bogusław Brandys wrote:
 
  Luiz Americo Pereira Camara wrote:
  Vincent Snijders wrote:
  Damien Gerard schreef:
 
  I use SVn with my projects in lazarus.
 
  I added the file project.lpi. This file is sent nearly at each  
  commit and always provides conflicts with others team members.
  However I believe the file is needed due to there are some  
  settings for the project.
 
  Is there a way to avoid this ?
 
  Do you store session information in a different file (.lps).
  Don't add this file to svn. See project options - Session.
  Another problem i face is that when you open a project saved in  
  Win32 in a Linux machine the lpi file is changed because of the  
  PathDelim even if you don't change the project options. The
  inverse (Linux  win32) is also true.
  This leads to unnecessary file commits.
  From some time i always check the changes in lpi files to see if  
  worth commiting
  Luiz
 
  What if inside project would be used only one PathDelim and IDE  
  resolve it into correct one on each platform ?
 
 
 
 Can Ressources files be safely removed from a svn repository for  
 Lazarus Projects ?

.lfm files: no
.lrs files: it depends. It is recommended to keep them.
.res files: I don't know.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Luca Olivetti

En/na Mattias Gaertner ha escrit:


.lfm files: no
.lrs files: it depends. It is recommended to keep them.


Why? Cannot they be automatically generated from the lfm?

Bye
--
Luca

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Vincent Snijders

Mattias Gaertner schreef:

.res files: I don't know.


I think they can be removed.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Mattias Gaertner
On Thu, 22 Nov 2007 11:51:36 +0100
Luca Olivetti [EMAIL PROTECTED] wrote:

 En/na Mattias Gaertner ha escrit:
 
  .lfm files: no
  .lrs files: it depends. It is recommended to keep them.
 
 Why? Cannot they be automatically generated from the lfm?

They are. But only if the units are in the project/package and when
built by the IDE or lazbuild.
If you forget to add a unit or if you want to build on command line you
get into troubles.
And because the lrs are normally somewhat smaller than the lfm it is
not worth the trouble.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Mattias Gaertner
On Thu, 22 Nov 2007 11:51:36 +0100
Luca Olivetti [EMAIL PROTECTED] wrote:

 En/na Mattias Gaertner ha escrit:
 
  .lfm files: no
  .lrs files: it depends. It is recommended to keep them.
 
 Why? Cannot they be automatically generated from the lfm?

And I forgot:
lrs files are normally in the source directories, which can be
readonly, so the IDE can not create them.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Sockets and Lazarus + WinCE

2007-11-22 Thread Daniel Rincón García
The standard sockets copile under WinCE?

2007/11/22, Razvan Adrian Bogdan [EMAIL PROTECTED]:

 On Nov 22, 2007 12:32 AM, Daniel Rincón García [EMAIL PROTECTED] wrote:
  Can I use the sockets components to make an application for WinCE?

 LNet, Indy, Synapse, i think all of them work on WinCE and most
 platforms, use the one which is best for you :)

 Razvan

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives



Re: [lazarus] Google's Android OS :)

2007-11-22 Thread willem

Marco van de Voort wrote:

On Thu, Nov 22, 2007 at 04:52:34PM +0700, Paul Ishenin wrote:
  

2007/11/22, Luca Olivetti [EMAIL PROTECTED]:
  

Considering that application for android have to be written in java I
somewhat doubt it.


  Even worse, Google uses its own virtual machine.
  

Lets teach fpc to generate java byte code for that machine :)



Have a look at

http://www.freepascal.org/faq.html#dotnet

specially the last paragraph.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

  

Well the last paragraph is Palmos . It simply dead.
But with android you can earn money.
Thats the big difference.

regards

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Henry Vermaak
On 22/11/2007, willem [EMAIL PROTECTED] wrote:
 Marco van de Voort wrote:
 
  Have a look at
 
  http://www.freepascal.org/faq.html#dotnet
 
  specially the last paragraph.
 

 Well the last paragraph is Palmos . It simply dead.
 But with android you can earn money.
 Thats the big difference.

no, the last paragraph of the What about .NET? entry:

These problems are pretty much similar for the Java (bytecode) too.
One has to mutilate the language, and rewrite the libraries from
scratch on the base libraries of the target (Java/.NET). Such an
attempt would have little synergy with the FPC project as it is
today.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Cesar Romero




Have a look at

http://www.freepascal.org/faq.html#dotnet

specially the last paragraph.


Well the last paragraph is Palmos . It simply dead.
But with android you can earn money.
Thats the big difference.


I think he mean last paragraph of DOT NET part, the link is not opening 
on that part, look at #dotnet


[]s

Cesar Romero

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: Re: [lazarus]

2007-11-22 Thread Vasily I. Volchenko
Why not? Course, it is supported. But... At first, double size increasing makes 
it sensitive (especially in mob.phones). But it is the least problem. 
Traditionally one symbol is considered as 1 byte (it is more than enough for 
latin and cyrillic), it makes many incompartibilities with a good old tested 
software (esp. on Windows). Then, looking at a UTF file with even DOS editor 
(dos has different encoding, it is a problem, but it is solved) will result in 
nonsense. Then, looking through executable (may be spoiled, may be very old) 
for a Russian text (or may be just patching .mo file directly) for localized 
text in UTF8 is... Say it, difficult.

And now disadvantages of UTF-8 text files.
1. 1-byte text is stable for both byte errors and byte losses (just spoiled 
byte will be a spoiled char). Unicode (2 or 4 byte) is stable for byte 
spoilage. Large part of UTF-8 file can be spoiled both with byte loss and byte 
spoilage. Besides, spoiled file (or partially text-partially-binary files) can 
break working with some soft (like iconv).
2. Why should we lose space twice because of UTF-8? It is even more 
inconvenient for Russians than using 2-byte unicode for Americans (and, at 
last, analysing UTF-8 by hand is more difficult than doing such with koi8-r, 
cp1251 or cp866).

And, anyway, neither delphi nor kylix uses UTF8 (kylix uses unicode in forms). 
This can make problems with porting.
So, the most reasonable thing is to give a choice for user, what encoding to 
use. The easiest way is to save all .pas files from SynEdit in system encoding, 
and to translate it to UTF-8 while loading. More complex ideas will include 
encoding name in project or even file (may be if the first line is 
{enc=cp1251} the file should be translated from that encoding to utf8 while 
loading).
At last, the fact that Lazarus compiled for windows, uses ansi (cp1251) while 
lazarus for linux uses UTF-8 is completely inacceptible.
So, I think, it 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus]

2007-11-22 Thread Vincent Snijders

Vasily I. Volchenko schreef:


And now disadvantages of UTF-8 text files.
1. 1-byte text is stable for both byte errors and byte losses (just spoiled 
byte will be a spoiled char). Unicode (2 or 4 byte) is stable for byte 
spoilage. Large part of UTF-8 file can be spoiled both with byte loss and byte 
spoilage. Besides, spoiled file (or partially text-partially-binary files) can 
break working with some soft (like iconv).


UTF8 can be resynced. So if you loose one char (partially) software can detect it 
and restart at the next char.



At last, the fact that Lazarus compiled for windows, uses ansi (cp1251) while 
lazarus for linux uses UTF-8 is completely inacceptible.


This will change before 0.9.26. Lazarus will use UTF8 on windows too.

Vincent

P.S. Please remove the reply too header

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Luiz Americo Pereira Camara

Mattias Gaertner wrote:

On Thu, 22 Nov 2007 11:51:36 +0100
Luca Olivetti [EMAIL PROTECTED] wrote:

  

En/na Mattias Gaertner ha escrit:



.lfm files: no
.lrs files: it depends. It is recommended to keep them.
  

Why? Cannot they be automatically generated from the lfm?



And I forgot:
lrs files are normally in the source directories, which can be
readonly, so the IDE can not create them.

  


In subversion case this is not valid since you assume its writeable.

I had some headaches after adding lrs to svn repositories. Definitely i 
don't add lrs and lps files to my svn repositories.


I created a bug report about the lpi file changes: 
http://www.freepascal.org/mantis/view.php?id=10238


Luiz

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Damien Gerard


On Nov 22, 2007, at 1:41 PM, Luiz Americo Pereira Camara wrote:


Mattias Gaertner wrote:

On Thu, 22 Nov 2007 11:51:36 +0100
Luca Olivetti [EMAIL PROTECTED] wrote:



En/na Mattias Gaertner ha escrit:



.lfm files: no
.lrs files: it depends. It is recommended to keep them.


Why? Cannot they be automatically generated from the lfm?



And I forgot:
lrs files are normally in the source directories, which can be
readonly, so the IDE can not create them.




In subversion case this is not valid since you assume its writeable.

I had some headaches after adding lrs to svn repositories.  
Definitely i don't add lrs and lps files to my svn repositories.




I agree with lps due to it contains about the session. So it should be  
added into a repository.

Like .res and now I have nice commits.
And I don't have any problems with lrs. What's wrong with them ?


I created a bug report about the lpi file changes: 
http://www.freepascal.org/mantis/view.php?id=10238

Luiz




--
Damien Gerard
[EMAIL PROTECTED]



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Marco van de Voort
On Thu, Nov 22, 2007 at 11:53:52AM +0200, Razvan Adrian Bogdan wrote:
 On Nov 22, 2007 11:36 AM, Luca Olivetti [EMAIL PROTECTED] wrote:
  Considering that application for android have to be written in java I
  somewhat doubt it.
 
 There must be a way to run apps natively or it's just another java OS ...

Not JVM, it's dahzlik bytecode or so. But JVM can be compiled to this
bytecode, licensing related.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Guru Kathiresan
Hello,
I know people here are mainly interested in Pascal but I thought I can share
some information about my C++ project that is based on the FreePascal
library code. I have attempted to create a cross platform C++ library called
wxVCL; this C++ library for wxWidgets is equivalent to that of Pascal RTL.
So far I have converted some 600 functions from System, Sysutils, StrUtils
and DateUtils. Some of the code is a direct Pascal conversion and some are
written using the wxWidgets classes.

Source code is released with the same license as FreePascal RTL. You can
find the source at: http://wxvcl.svn.sourceforge.net/viewvc/wxvcl/cpp/ and
more information about the code at http://twinforms.com/wxvcl.htm .

-Guru Kathiresan 
http://twinforms.com/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Marco van de Voort
On Thu, Nov 22, 2007 at 10:41:44AM +0100, willem wrote:
 Well object pascal lies between java and c++.

It lies at C++ level.

 android uses the eclipse ide.
 but antlr has also an eclipse plugin.
 object pascal and java grammars are available for antlr.
 
 so we can bridge the gap between java and object pascal.

What are you actually trying to achieve ?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Luiz Americo Pereira Camara

Damien Gerard wrote:
I had some headaches after adding lrs to svn repositories. Definitely 
i don't add lrs and lps files to my svn repositories.




I agree with lps due to it contains about the session. So it should be 
added into a repository.

Like .res and now I have nice commits.
And I don't have any problems with lrs. 


If you are fine keeping them so there's no need to change.


What's wrong with them ?


I ended in a situation where i got streaming exceptions. I don't know 
how to reproduce it.


Luiz


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Damien Gerard


On Nov 22, 2007, at 2:11 PM, Luiz Americo Pereira Camara wrote:


Damien Gerard wrote:
I had some headaches after adding lrs to svn repositories.  
Definitely i don't add lrs and lps files to my svn repositories.




I agree with lps due to it contains about the session. So it should  
be added into a repository.

Like .res and now I have nice commits.
And I don't have any problems with lrs.


If you are fine keeping them so there's no need to change.




What's wrong with them ?


I ended in a situation where i got streaming exceptions. I don't  
know how to reproduce it.




With Images :) But I think there are bugs report for it and I haven't  
seen them for a few weeks.



Luiz




--
Damien Gerard
[EMAIL PROTECTED]



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread willem

Marco van de Voort wrote:

On Thu, Nov 22, 2007 at 10:41:44AM +0100, willem wrote:
  

Well object pascal lies between java and c++.



It lies at C++ level.

  

android uses the eclipse ide.
but antlr has also an eclipse plugin.
object pascal and java grammars are available for antlr.

 
  

so we can bridge the gap between java and object pascal.



What are you actually trying to achieve ?
  

the google android project has a  10 000 000 dollar budget.
and if the lazarus gets a 50 000 dollar award for the adroid project
then we can make the lazarus at first 100 %compatible with delphi.
I applieed for an account on sourceforge because
i want to start up an android lazarus project
and the first i will do is the java and delphi grammar to check
on lazarus development list then the developers can add improvements to 
the delphi grammer specification

object pascal is the middle man between c++ and java
and the developper of c++ said that c++ needs to be improved but there 
is already a solution it is object pascal.


regards


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Sérgio Marcelo - Sumicity Networks

I would at first doubt one c++ programmer would say that. But who did? :-)

Sérgio Marcelo

willem escreveu:
and the developper of c++ said that c++ needs to be improved but there 
is already a solution it is object pascal.


regards 


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Lord Satan
On Thu, 22 Nov 2007 04:58:56 -0800
Guru Kathiresan [EMAIL PROTECTED] wrote:

 Hello,
 I know people here are mainly interested in Pascal 

Correct and have a nice day.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Sam Liddicott
* Guru Kathiresan wrote, On 22/11/07 12:58:
 Hello,
 I know people here are mainly interested in Pascal but I thought I can share
 some information about my C++ project that is based on the FreePascal
 library code. I have attempted to create a cross platform C++ library called
 wxVCL; this C++ library for wxWidgets is equivalent to that of Pascal RTL.
 So far I have converted some 600 functions from System, Sysutils, StrUtils
 and DateUtils. Some of the code is a direct Pascal conversion and some are
 written using the wxWidgets classes.

 Source code is released with the same license as FreePascal RTL. You can
 find the source at: http://wxvcl.svn.sourceforge.net/viewvc/wxvcl/cpp/ and
 more information about the code at http://twinforms.com/wxvcl.htm .
   
Thanks for this.

Have you heard of a project called ALMA (on freshmeat) which may (or may
not) help you with this.

Sam

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus]

2007-11-22 Thread Vasily I. Volchenko

 UTF8 can be resynced. So if you loose one char (partially) software can 
 detect it 
 and restart at the next char.
Can be. But not all times and not all the software. 

  At last, the fact that Lazarus compiled for windows, uses ansi (cp1251) 
  while lazarus for linux uses UTF-8 is completely inacceptible.
 
 This will change before 0.9.26. Lazarus will use UTF8 on windows too.
Looks good. But anyway, I think, the choice of saving (and only saving) 
encoding should be left for the end user.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Michael Van Canneyt


On Thu, 22 Nov 2007, Damien Gerard wrote:

 
 On Nov 22, 2007, at 2:42 PM, willem wrote:
 
 Marco van de Voort wrote:
  On Thu, Nov 22, 2007 at 10:41:44AM +0100, willem wrote:
  
   Well object pascal lies between java and c++.
   
  
  It lies at C++ level.
  
  
   android uses the eclipse ide.
   but antlr has also an eclipse plugin.
   object pascal and java grammars are available for antlr.
   
  
   so we can bridge the gap between java and object pascal.
   
  
  What are you actually trying to achieve ?
  
 the google android project has a  10 000 000 dollar budget.
 and if the lazarus gets a 50 000 dollar award for the adroid project
 then we can make the lazarus at first 100 %compatible with delphi.
 I applieed for an account on sourceforge because
 i want to start up an android lazarus project
 and the first i will do is the java and delphi grammar to check
 on lazarus development list then the developers can add improvements to the
 delphi grammer specification
 object pascal is the middle man between c++ and java
 and the developper of c++ said that c++ needs to be improved but there is
 already a solution it is object pascal.
 
 
 But in C++ there are templates and I want my templates in C++ :)

You have them in Free Pascal as well.

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Damien Gerard


On Nov 22, 2007, at 3:18 PM, Michael Van Canneyt wrote:




On Thu, 22 Nov 2007, Damien Gerard wrote:



On Nov 22, 2007, at 2:42 PM, willem wrote:


Marco van de Voort wrote:

On Thu, Nov 22, 2007 at 10:41:44AM +0100, willem wrote:


Well object pascal lies between java and c++.



It lies at C++ level.



android uses the eclipse ide.
but antlr has also an eclipse plugin.
object pascal and java grammars are available for antlr.




so we can bridge the gap between java and object pascal.



What are you actually trying to achieve ?


the google android project has a  10 000 000 dollar budget.
and if the lazarus gets a 50 000 dollar award for the adroid project
then we can make the lazarus at first 100 %compatible with delphi.
I applieed for an account on sourceforge because
i want to start up an android lazarus project
and the first i will do is the java and delphi grammar to check
on lazarus development list then the developers can add  
improvements to the

delphi grammer specification
object pascal is the middle man between c++ and java
and the developper of c++ said that c++ needs to be improved but  
there is

already a solution it is object pascal.



But in C++ there are templates and I want my templates in C++ :)


You have them in Free Pascal as well.



Generics yes but not templates 
http://www.freepascal.org/docs-html/ref/refch8.html#x79-860008


Michael.




--
Damien Gerard
[EMAIL PROTECTED]



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] LCL in Dll

2007-11-22 Thread Leonardo M. Ramé
I'd try to compile Zeos Library in a Dll using Lazarus, it comiples, but 
can't be loaded at least using LoadLibrary in Windows, resulting in an 
Unknown Run-Time error 202.


Reading in old forums, I found that isn't possible to create forms in 
dlls because of LCL problems, a bug report was created regarding this 
issue (check this: http://www.freepascal.org/mantis/view.php?id=7181 ), 
but it seems to be frozen.


My think my problem is related to that bug, because I can create the dll 
using straight FPC from command line and it works correctly.


Does anyone addressed the issue? any positive feedback?

Leonardo.





_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TMaskEdit

2007-11-22 Thread Marc Weustink

Guadagnini David wrote:
In attach You can found my TMaskEdit component that work well in Windows 


At first glance this looks like a clean implementation without copied 
code (can sombody this verify agains cppbuilder implementations)



Some remarks about the code:

Try to avoid Arguments and Methods prefixed with _
For Aguments there is no problem in prefixing them with A, for 
property getters there is nothing wrong with prefixing them with Get. In 
your case, GetIsMask makes perfectly clear that it reads the IsMasked 
property.


Variable names like X1, X2, XX1, XX2
Please name them after there use: GetSel(X1, X2) could also be coded 
like: GetSel(SelStart, SelLength) (or was it SelStop)

You see... with naming them it will be clear.

Why using the C approach for naming all kinds is Char_xxx (as char). 
Pascal has a perfect suitable type for this : enum.

No cludging winth #nn and mak sure they are unique etc.

in CanInsertChar, why do you use short stings and why assigning S := 
FMask instead of accessing Fmask.


Anyway, I think that after some cleanup, this will be usable code.

and in Linux but have a little bug: the message WM_PAST seems that is 
never invoked. I tried to override the procedure PasteFromClipboard of 
the component TCustomEdit but is the same. Some idea?



Pasting is handled by the widget itself. unlike in windows, I think a 
paste isn't redirected yout



marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TMaskEdit

2007-11-22 Thread Marc Weustink

Guadagnini David wrote:



Try to avoid Arguments and Methods prefixed with _
For Aguments there is no problem in prefixing them with A, for 
property getters there is nothing wrong with prefixing them with Get. 
In your case, GetIsMask makes perfectly clear that it reads the 
IsMasked property.



Ok!

Variable names like X1, X2, XX1, XX2
Please name them after there use: GetSel(X1, X2) could also be coded 
like: GetSel(SelStart, SelLength) (or was it SelStop)

You see... with naming them it will be clear.


Ok!
Question... SelStart and SelStop are present in TCustomEdit controls?


I mean them as variable names. If they are present as properties use 
StartSel/StopSel for instance.


Why using the C approach for naming all kinds is Char_xxx (as char). 
Pascal has a perfect suitable type for this : enum.

No cludging winth #nn and mak sure they are unique etc.


For me it is easier to administer. But if you want I change it


They are clearer, and can be checked better if they are in range for 
instance. (who will check if #42 is valid in your case)


What do you mean by administer ? declaring like:
  TmyEnum = (Enumone, enumTwo...);
is imo easier than:
  TmyEnum_EnumOne = 1;
  TmyEnum_EnumOne = 2;
  ...

if you man the FMask array ? Delcalre it like FMask: array of TmyEnum;

in CanInsertChar, why do you use short stings and why assigning S := 
FMask instead of accessing Fmask.


Because in Delphi if I use String can not access to a single char with 
S[] and I must trasform String in ShortString or in PChar or in Array Of 
Char


???
Don't know about your version of delphi, but all the versions I know 
(D1..D7), you can access SomeString[i] as character


Pasting is handled by the widget itself. unlike in windows, I think a 
paste isn't redirected yout




The strange thing is that the procedure PasteFromClipboard not be invoked


Paste from clipboard is an action. The developer tells the control to 
get the contents of the clipboard (like it was pasted by the user)


Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] LCL in Dll

2007-11-22 Thread Marc Weustink

Leonardo M. Ramé wrote:
I'd try to compile Zeos Library in a Dll using Lazarus, it comiples, but 
can't be loaded at least using LoadLibrary in Windows, resulting in an 
Unknown Run-Time error 202.


Reading in old forums, I found that isn't possible to create forms in 
dlls because of LCL problems, a bug report was created regarding this 
issue (check this: http://www.freepascal.org/mantis/view.php?id=7181 ), 
but it seems to be frozen.


Not frozen, but the target is set to post 1.0. That means that at least 
the developers won't adress it now.


My think my problem is related to that bug, because I can create the dll 
using straight FPC from command line and it works correctly.


Creating dlls is not the problem, but anything TAppliation related 
cannot be used in a dll. (delphi uses some hhoks to connect the 
TAppliation instance in the dll to the one in the mainapp)



Does anyone addressed the issue? any positive feedback?



Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Marco van de Voort
On Thu, Nov 22, 2007 at 02:42:58PM +0100, willem wrote:
 Marco van de Voort wrote:
 On Thu, Nov 22, 2007 at 10:41:44AM +0100, willem wrote:
   
 Well object pascal lies between java and c++.
 
 
 It lies at C++ level.
 
   
 android uses the eclipse ide.
 but antlr has also an eclipse plugin.
 object pascal and java grammars are available for antlr.
 

 so we can bridge the gap between java and object pascal.
 
 
 What are you actually trying to achieve ?
   
 the google android project has a  10 000 000 dollar budget.
 and if the lazarus gets a 50 000 dollar award for the adroid project

Big if. Very big _if_.

 then we can make the lazarus at first 100 %compatible with delphi.

Well, that needs mainly time, not money. And the time on android project
can be better spent directly on Lazarus.

 I applieed for an account on sourceforge because
 i want to start up an android lazarus project
 and the first i will do is the java and delphi grammar to check

Why do you need a Java grammar at all?

Afaik there is no Delphi grammar that really describes the language. Sure,
there are pretty printers, but nothing that can handle arbitrary code.
Before you start you might also learn your target better, and at least have
an idea how you are going to tackle porting unmanaged constructs to a
managed version.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TMaskEdit

2007-11-22 Thread Guadagnini David



Try to avoid Arguments and Methods prefixed with _
For Aguments there is no problem in prefixing them with A, for 
property getters there is nothing wrong with prefixing them with Get. 
In your case, GetIsMask makes perfectly clear that it reads the 
IsMasked property.



Ok!

Variable names like X1, X2, XX1, XX2
Please name them after there use: GetSel(X1, X2) could also be coded 
like: GetSel(SelStart, SelLength) (or was it SelStop)

You see... with naming them it will be clear.


Ok!
Question... SelStart and SelStop are present in TCustomEdit controls?
Why using the C approach for naming all kinds is Char_xxx (as char). 
Pascal has a perfect suitable type for this : enum.

No cludging winth #nn and mak sure they are unique etc.


For me it is easier to administer. But if you want I change it
in CanInsertChar, why do you use short stings and why assigning S := 
FMask instead of accessing Fmask.


Because in Delphi if I use String can not access to a single char with 
S[] and I must trasform String in ShortString or in PChar or in Array Of 
Char




Pasting is handled by the widget itself. unlike in windows, I think a 
paste isn't redirected yout




The strange thing is that the procedure PasteFromClipboard not be invoked

begin:vcard
fn:David Guadagnini
n:Guadagnini;David
org:Biotecnica Instruments S.p.A.;RD
adr:;;Via Licenza 18;Roma;RM;00133;Italy
email;internet:[EMAIL PROTECTED]
title:Software architet
tel;work:+39064112616
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [lazarus] LCL in Dll

2007-11-22 Thread Leonardo M. Ramé

Marc Weustink escribió:

Leonardo M. Ramé wrote:
Creating dlls is not the problem, but anything TAppliation related 
cannot be used in a dll. (delphi uses some hhoks to connect the 
TAppliation instance in the dll to the one in the mainapp)




That means Zeos uses LCL?, I still don't understand why the dll works 
correctly by compiling in FPC from command line and not by compiling 
from Lazarus.


Leonardo.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] is laz 9.24 fixes on svn ready to be used?

2007-11-22 Thread Bee

Hi all,

Especially to laz's svn maintainers...

I saw laz 9.24 fixes branch on svn had been updated in the last 20 
hours. I just want to confirm, is this branch exactly the same with 9.24 
release? Because I see most updates had been done 2 weeks ago.


If it is then I'll use this branch for my daily use, instead of the 
official stable release. Or should I wait for official announcement of 
its availability?


TIA.

-Bee-

has Bee.ography at:
http://beeography.wordpress.com

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Changes for targa read (FPC team)

2007-11-22 Thread wile64
Hi,

This change allows you to read any file formats TARGA.

I send the complete file, I am not a developer FPC ;)

Regards,

-- 
Laurent.

My Components: http://wiki.lazarus.freepascal.org/Wile64
French Forum : http://lazforum-fr.tuxfamily.org/index.php


fpreadtga.pp
Description: Binary data


Re: [lazarus] is laz 9.24 fixes on svn ready to be used?

2007-11-22 Thread Giuliano Colla

Bee ha scritto:

Hi all,

Especially to laz's svn maintainers...

I saw laz 9.24 fixes branch on svn had been updated in the last 20 
hours. I just want to confirm, is this branch exactly the same with 9.24 
release? Because I see most updates had been done 2 weeks ago.


If it is then I'll use this branch for my daily use, instead of the 
official stable release. Or should I wait for official announcement of 
its availability?



You have two options.

1) Start using it right now at your own risk (the updates of two weeks 
ago have been tested, the last ones not yet) and participate to the 
fixes branch testing.


2) Wait for official announcement. Then use at your own risk ;-), but 
knowing that what you get has been at least tested in a couple of 
platforms before being committed.


Giuliano

--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Changes for targa read (FPC team)

2007-11-22 Thread Michael Van Canneyt


On Thu, 22 Nov 2007, wile64 wrote:

 Hi,
 
 This change allows you to read any file formats TARGA.
 
 I send the complete file, I am not a developer FPC ;)

Thank you very much. I committed the file to SVN.

Michael.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread willem

Marco van de Voort wrote:

On Thu, Nov 22, 2007 at 02:42:58PM +0100, willem wrote:
  

Marco van de Voort wrote:


On Thu, Nov 22, 2007 at 10:41:44AM +0100, willem wrote:
  
  

Well object pascal lies between java and c++.



It lies at C++ level.

  
  

android uses the eclipse ide.
but antlr has also an eclipse plugin.
object pascal and java grammars are available for antlr.


   
  

so we can bridge the gap between java and object pascal.



What are you actually trying to achieve ?
  
  

the google android project has a  10 000 000 dollar budget.
and if the lazarus gets a 50 000 dollar award for the adroid project



Big if. Very big _if_.

  

then we can make the lazarus at first 100 %compatible with delphi.



Well, that needs mainly time, not money. And the time on android project
can be better spent directly on Lazarus.
  
Well I am not going too spend much time in the discussion of android in 
the lazarus mailinglist.

I did apply for a new account on sourceforge.
My intention is to name it androida.
and my first step is to put a antlr delphi grammar into cvs.
Thats is a very basic step.
I know that the lazarus grammar is based on yacc
but i will use antlr too speed things up.
  

I applieed for an account on sourceforge because
i want to start up an android lazarus project
and the first i will do is the java and delphi grammar to check



Why do you need a Java grammar at all?

Afaik there is no Delphi grammar that really describes the language. Sure,
there are pretty printers, but nothing that can handle arbitrary code.
Before you start you might also learn your target better, and at least have
an idea how you are going to tackle porting unmanaged constructs to a
managed version.
  

Sorry you are wrong.
I have already the delphi grammar for antlr


kindly regards

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread willem

Sérgio Marcelo - Sumicity Networks wrote:
I would at first doubt one c++ programmer would say that. But who did? 
:-)


well the c++ programmer who did say that is Bjarne Stoustrup,
the designer and implementor of the c++ language


Sérgio Marcelo

willem escreveu:
and the developper of c++ said that c++ needs to be improved but 
there is already a solution it is object pascal.


regards 


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Felipe Monteiro de Carvalho
I think it would be a lot more productive to instead write wrapper C++
classes around the Free Pascal ones.

That would give someone full access to the Free Pascal libraries in a
much more efficient way then re-writing everything. Not to mention
that you would get bug fixes instantaneously when they are made to
Free Pascal.

This same thing is done to access C++ libraries in Free Pascal, so the
other way around is certainly also possible.

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Guru Kathiresan


 -Original Message-
 From: Felipe Monteiro de Carvalho
 I think it would be a lot more productive to instead write wrapper C++
 classes around the Free Pascal ones.
snip 
 This same thing is done to access C++ libraries in Free Pascal, so the
 other way around is certainly also possible.

If we can generate a dll/so based on the FP library then everyone can use it
but when people want to use the code as a static library with Digital Mars
C++, VC++, Watcom C++, then it is next to impossible to use the FP
libraries. I think FP generates the object code in DWARF format so you
cannot use the compilers that support COFF or OMF formats.

-Guru Kathiresan
http://twinforms.com/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Guru Kathiresan


 -Original Message-
 From: Sam Liddicott [mailto:[EMAIL PROTECTED]
 Thanks for this.
 
 Have you heard of a project called ALMA (on freshmeat) which may (or may
 not) help you with this.

I haven't heard about it. It looks like a nice tool. I used delphi2cpp from
http://ivan.vecerina.com/code/delphi2cpp/ and changed the generated code to
make sure it uses the wxWidgets Library.

-Guru Kathiresan
http://twinforms.com/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread Marco van de Voort
On Thu, Nov 22, 2007 at 07:52:59PM +0100, willem wrote:
 I know that the lazarus grammar is based on yacc

The FPC is recursive descent and is not based on yacc. Syntax highlighter
parsers don't have to be 100% correct.

 Before you start you might also learn your target better, and at least 
 have
 an idea how you are going to tackle porting unmanaged constructs to a
 managed version.
   
 Sorry you are wrong.
 I have already the delphi grammar for antlr

There is even one in the Delphi's manual. But even that is not complete. How
can you be so sure yours is? 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Marco van de Voort
On Thu, Nov 22, 2007 at 08:22:50PM +0100, Felipe Monteiro de Carvalho wrote:
 I think it would be a lot more productive to instead write wrapper C++
 classes around the Free Pascal ones.
 
 That would give someone full access to the Free Pascal libraries in a
 much more efficient way then re-writing everything. Not to mention
 that you would get bug fixes instantaneously when they are made to
 Free Pascal.
 
 This same thing is done to access C++ libraries in Free Pascal, so the
 other way around is certainly also possible.

Easier maybe even, since easier autogeneratable.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Felipe Monteiro de Carvalho
On Nov 22, 2007 9:21 PM, Guru Kathiresan [EMAIL PROTECTED] wrote:
 but when people want to use the code as a static library with Digital Mars
 C++, VC++, Watcom C++, then it is next to impossible to use the FP
 libraries.

In that case I would say they can either use gcc where one can use .o
object files from fpc directly (like in a static lib), or they can use
a shared lib. Anyway, I don't think this is a big restriction.

 I think FP generates the object code in DWARF format so you
 cannot use the compilers that support COFF or OMF formats.

DWARF is a debug information format, not object file format.

FPC produces object code compatible with GCC.

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Changes for targa read (FPC team)

2007-11-22 Thread Vincent Snijders

Michael Van Canneyt schreef:


On Thu, 22 Nov 2007, wile64 wrote:


Hi,

This change allows you to read any file formats TARGA.

I send the complete file, I am not a developer FPC ;)


Thank you very much. I committed the file to SVN.



Something went wrong:
http://www.freepascal.org/mantis/view.php?id=10245

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Changes for targa read (FPC team)

2007-11-22 Thread wile64
2007/11/22, Vincent Snijders [EMAIL PROTECTED]:

 Michael Van Canneyt schreef:
 
  On Thu, 22 Nov 2007, wile64 wrote:
 
  Hi,
 
  This change allows you to read any file formats TARGA.
 
  I send the complete file, I am not a developer FPC ;)
 
  Thank you very much. I committed the file to SVN.
 

 Something went wrong:
 http://www.freepascal.org/mantis/view.php?id=10245

 Vincent


Thanks to Marco for his speed.


-- 
Laurent.

My Components: http://wiki.lazarus.freepascal.org/Wile64
French Forum : http://lazforum-fr.tuxfamily.org/index.php


Re: Re: [lazarus]

2007-11-22 Thread Felipe Monteiro de Carvalho
On Nov 22, 2007 12:46 PM, Vasily I. Volchenko [EMAIL PROTECTED] wrote:
 At last, the fact that Lazarus compiled for windows, uses ansi (cp1251) while 
 lazarus for linux uses UTF-8 is completely inacceptible.

Read the Manual (which in our case means wiki):

http://wiki.lazarus.freepascal.org/LCL_Unicode_Support#Compiling_LCL-Win32_with_Unicode

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Guru Kathiresan
 In that case I would say they can either use gcc where one can use .o
 object files from fpc directly (like in a static lib), or they can use
 a shared lib. Anyway, I don't think this is a big restriction.

GCC is very slow in Windows and not all professional Windows developers use
it. Mostly they'll use VC++ and Intel C++ compiler. Apart from that
wxWidgets supports a wide variety of compilers and it will not be of any use
for most of the users. In case of Linux and Mac developers it's not a big
restriction but for others it's a big show stopper. 
 
 DWARF is a debug information format, not object file format.
 FPC produces object code compatible with GCC.

My mistake. But not every Windows developers use GDB to debug their
application and not all compilers support the object code that are created
by GCC.

-Guru Kathiresan
http://twinforms.com/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Google's Android OS :)

2007-11-22 Thread willem

Marco van de Voort wrote:

On Thu, Nov 22, 2007 at 07:52:59PM +0100, willem wrote:
  

I know that the lazarus grammar is based on yacc



I did some google search on the fpc
I do know that google searches results are not always correct.
I a a newby to the lazarus project.
but i did study compiler comnstruction 30 years ago.
Pascal has been founded by Prof niklaus Wirth as an an educational 
computer language

and he has extended the backus -nauer form to EBNF.
Well I am going to extend ENBF with XML.
Grammar is very important as a base to study a language.
I want to start Andromedia.
The first  effort will be documenting the delphi antlr grammar.
I will use XML for that.
because the the delphi grammar can easily be expanded with an XML 
specification.


I did study websites with html and javascript. That horrible and it 
takes a lot of time to understand that kind of thing


well i have 30 years of experience with computing problems
my first computer experience was with the intel 4004 but i am a newby on 
this forum.

My intentention is is to start the androida project on sourceforge
I will then publish the delphi grammar for antlr.
Experienced Lazarus developpers can then suggest improvements on this 
delphi grammar and so it becomes

lazarus grammar. I want to extend the delphi grammar with XML
So EBNF becomes XEBNF !!!




















The FPC is recursive descent and is not based on yacc. Syntax highlighter
parsers don't have to be 100% correct.

  
Before you start you might also learn your target better, and at least 
have

an idea how you are going to tackle porting unmanaged constructs to a
managed version.
  
  

Sorry you are wrong.
I have already the delphi grammar for antlr



There is even one in the Delphi's manual. But even that is not complete. How
can you be so sure yours is? 


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] is laz 9.24 fixes on svn ready to be used?

2007-11-22 Thread Bee
1) Start using it right now at your own risk (the updates of two weeks 
ago have been tested, the last ones not yet) and participate to the 
fixes branch testing.


Never mind the risk, I knew about it since the beginning. What I meant, 
is the source code on 9.24 fixes branch exactly the same with the source 
code on 9.24 release? Since 9.24 release was announced yesterday but the 
 fixes updates are two weeks older, I doubt they are the same codes. If 
someone can guarantee that they are same codes, I'd like to use it.


2) Wait for official announcement. Then use at your own risk ;-), but 
knowing that what you get has been at least tested in a couple of 
platforms before being committed.


If the announcement wouldn't be too far from today, I might better wait 
for it. :) BTW, if there are some important fixes or features on 
development branch, to whom should I request to merge it to fixes 
branch? To Guiliano? Also, which fpc is officially used by this fixes 
branch? fpc stable (2.2.0) or fpc fixes (2.2.1)?


I'm interesting to be involved in the testing. What should I do? FYI, 
I'm using fpc v.2.2.1 on Linux Ubuntu on i386 machine, but I'm new to 
SVN system. :-D


TIA.

-Bee-

has Bee.ography at:
http://beeography.wordpress.com

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: Re: Re: [lazarus]

2007-11-22 Thread Vasily I. Volchenko
OK, I understand the problems of using utf8 on windows, but I am speaking about 
other things. Why lazarus should save (and load) pascal (and only pascal, not 
lfm/lrs, not po) files in the internal encoding? If gtk2 version supports utf8, 
it forces user to save all files in utf8, when if windows version not supported 
it, saving in ansi charset is forced. It is possible (and quite easy by means 
of RTL) to convert text from utf8 to ansi, why not to use this translation on 
saving/loading by the choice of user?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] VCL for C++ based on FreePascal RTL

2007-11-22 Thread Felipe Monteiro de Carvalho
On Nov 23, 2007 12:22 AM, Guru Kathiresan [EMAIL PROTECTED] wrote:
 GCC is very slow in Windows and not all professional Windows developers use
 it. Mostly they'll use VC++ and Intel C++ compiler.

Then they should use an external library. (what's so bad about it??
Most c++ apps I see are deploying msvc70rt DLLs or something like that
anyway)

There is also the very important advantage of using a wrapper around
the current fpc rtl/fcl/lcl that it's very well tested, with a very
comprehensive test suite in the case of the core libraries, and with
lot's of people testing it daily. A new ground implementation will
have new bugs, and will have the disadvantage that it's code is not as
extensively tested as the free pascal libraries.

That's fixable if there are lot's of contributors, but it is more
logical to wrap the already tested libraries.

-- 
Felipe Monteiro de Carvalho

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] [patch] CodeTools options dialog

2007-11-22 Thread Graeme Geldenhuys
Hi,

Attached is a minor patch for CodeTools Options dialog.  It fixes the
items in the last tab. They got clipped because autosize was not
enabled.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
Index: ide/codetoolsoptions.pas
===
--- ide/codetoolsoptions.pas	(revision 12977)
+++ ide/codetoolsoptions.pas	(working copy)
@@ -974,9 +974,15 @@
 procedure TCodeToolsOptsDlg.SetupIdentifierCompletionPage(PageID: integer);
 begin
   with ICAddSemicolonCheckBox do
+  begin
 Caption:=dlgAddSemicolon;
+AutoSize := True;
+  end;
   with ICAddAssignOperatorCheckBox do
+  begin
 Caption:=dlgAddAssignmentOperator;
+AutoSize := True;
+  end;
 end;
 
 procedure TCodeToolsOptsDlg.ResizeLineSplittingPage;