Re: [fpc-pascal] Good revision on wince cross-compiler

2006-12-09 Thread Felipe Monteiro de Carvalho

Ok, I just found out that the OnCreate of that program was creating a
TCustomControl descendent. That seams to crash the application on
wince. Removing it and having only a simple program with a form and
some buttons works ok with latest subversion Lazarus =)

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Good revision on wince cross-compiler

2006-12-09 Thread Felipe Monteiro de Carvalho

On 12/8/06, Gabor Boros <[EMAIL PROTECTED]> wrote:

5191 works very well for me.


Which Lazarus revision do you use?

I tested very old ones, but they refuse to compile, due to changes on
the FCL or RTL.

The current "stable" snapshot we work with is about 5 months old now.

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Good revision on wince cross-compiler

2006-12-09 Thread Felipe Monteiro de Carvalho

Hello,


On 12/8/06, TOndrej <[EMAIL PROTECTED]> wrote:

A few weeks ago I experimented and found out that fpc 5389 and Lazarus
10204 worked for me on arm-wince. I'm sticking to these revisions for
the time being, making my local modifications as needed.


I don´t know why but this combination didn´t work for me. Console
applications work correctly, but LCL windowed app did not. It at least
shows a error message, something went wrong on the initialization on a
unit. (it complains about the begin on the program file, so I guess
this is the problem).

FPC 5191 worked much better, but using latest subversion lazarus the
app loads, shows on screen, and then crashes. The same with 10204. I
will test with even older revisions to see if they work.

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Reading text from images

2006-12-09 Thread Darius Blaszijk
This technique is called OCR. No idea if there is a pascal implementation, 
but it should not be too hard to make one. It's based on neural networks 
that "learn" to recognize any character from any font.


Darius

- Original Message - 
From: "Antal" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, December 09, 2006 3:09 PM
Subject: [fpc-pascal] Reading text from images


Does anybody have an idea about how to read text from an image, using 
freepascal?
There are lots of fonts, and so on, but it would be rather interesting to 
make able fpc to read from jpegs or gifs, since on the net there is so 
much information stored in images.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] RE: [lazarus] Article on Pixel.

2006-12-09 Thread Tomas Hajny
On 8 Dec 06, at 23:17, George Birbilis wrote:

> > > > The latest issue of Linux Journal features an article about Pixel
> > > > (By Pavel Kanzelsberger).
> > > > It gives it a very good comment. Pity it's not mentioned
> > that it's
> > > > written using FPC.
> > > > (the article is written by a writer/publisher, not a programmer).
> > > >
> > > > For the Lazarus users: Pixel is written using a
> > widget-set developed
> > > > by Pavel.
 .
 .
> I don't see Lazarus mentioned at the splash screen of the windows version
> (some of you guys are mentioned, but wouldn't harm to mention Lazarus too or
> instead)
> Also didn't notice Lazarus button or something at the website (didn't look
> much though, maybe have missed it)

As far as I know, the reason is as simple as 
this: it isn't created using Lazarus, just FPC. 
Pixel is available for much more platforms than 
Lazarus. According to my knowledge, the widgetset 
is based on SDL.

Tomas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Reading text from images

2006-12-09 Thread Antal
Does anybody have an idea about how to read text from an image, using 
freepascal?
There are lots of fonts, and so on, but it would be rather interesting to 
make able fpc to read from jpegs or gifs, since on the net there is so 
much information stored in images.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Implementing a true Singleton - Can we decrease the visibility of a method?

2006-12-09 Thread Steve Williams
>> > I found this by trying to implement a True Singleton in Free Pascal /
>> > Delphi.  For those that don't know, a Singleton is a Design Pattern
>> > that allows only one instance of a class.  It seems it is impossible
>> > to do in Free Pascal / Delphi.  :-(
>>
>> Try this.
>> http://bdn.borland.com/article/22576
>
> Maybe we should include an implementation in FPC by default ?

That shouldn't be difficult.  The implementation given in that article is
quite simple and effective.

-- 
Sly




This message and its attachments may contain legally privileged or confidential 
information. This message is intended for the use of the individual or entity 
to which it is addressed. If you are not the addressee indicated in this 
message, or the employee or agent responsible for delivering the message to the 
intended recipient, you may not copy or deliver this message or its attachments 
to anyone. Rather, you should permanently delete this message and its 
attachments and kindly notify the sender by reply e-mail. Any content of this 
message and its attachments, which does not relate to the official business of 
the sending company must be taken not to have been sent or endorsed by the 
sending company or any of its related entities. No warranty is made that the 
e-mail or attachment(s) are free from computer virus or other defect.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] UML state machine drawing tool

2006-12-09 Thread Marc Santhoff
Am Freitag, den 08.12.2006, 18:24 -0200 schrieb Wanderlan Santos dos
Anjos:
> Hello Marc,
> 
> My company is making this now. www.channeltecnologia.com/en/XDA.asp.
> The download will be online at february.

I'm looking forward to it.

Btw. interesting MDA style infrastructure your company is offering, but
I can't find any real life example. Will there be one in february or can
you give me a link?

Thanks,
Marc


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Marc Santhoff
Am Samstag, den 09.12.2006, 10:01 +0100 schrieb Michael Van Canneyt:

> > I'm stuck, what is missing here or how can I go on debugging the
> > problem?
> 
> Nothing is missing. getepochtime is present in the Sysutils unit, but is not 
> exposed,
> as it's not cross platform. You should be using fptime.

Far more simple than I thought, I had started fiddling paths and the
like ... :)

Thanks for all helping hands,
Marc


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Marco van de Voort
> Marco van de Voort wrote:
> >>> fpc 2.0.2.
> >>>
> >>> CommonTypes.pp(207,21) Error: Identifier not found "GetEpochTime"
> >> http://www.freepascal.org/docs-html/rtl/oldlinux/getepochtime.html
> > 
> > He uses FreeBSD.
> 
> Ah right, this was apparent from the unit path.

Not that I'd recommend oldlinux to linux/x86 users though. It was really only
meant to recompile unmaintained old stuff for the 1->2 transition.

IMHO we can disable it for 2.2 too.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Micha Nelissen
Marco van de Voort wrote:
>>> fpc 2.0.2.
>>>
>>> CommonTypes.pp(207,21) Error: Identifier not found "GetEpochTime"
>> http://www.freepascal.org/docs-html/rtl/oldlinux/getepochtime.html
> 
> He uses FreeBSD.

Ah right, this was apparent from the unit path.

Micha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Michael Van Canneyt


On Sat, 9 Dec 2006, Marc Santhoff wrote:

> Hi,
> 
> I've got some funny problem here. The program compiled well with fpc up
> to version 1.9.4. I haven't touched it for a while and now it fails with
> fpc 2.0.2.
> 
> The source snippet in queston is:
> 
> function TStorable.generateID: integer;
> begin
> //writeln(GetEpochTime); does not work anymore
> result := sysutils.GetEpochTime(); // does not work either
> //result := fpTime; // this works!
> end;
> 
> As you can see I've tried prefixing with the correct unit specifier but
> it fails:
> 
> CommonTypes.pp(207,21) Error: Identifier not found "GetEpochTime"
> 
> Checking the source and even grep'ping and strings'ing sysutils.ppu and
> sysutils.o the function GetEpochTime is there:
> 
> $ grep GetEpochTime 
> /home/marc/fpc-2.0.2/lib/fpc/2.0.2/units/i386-freebsd/rtl/sysutils.ppu
> Binary file 
> /home/marc/fpc-2.0.2/lib/fpc/2.0.2/units/i386-freebsd/rtl/sysutils.ppu matches
> 
> But the compiler doesn't find it:
> 
> from fpc ... -vt
> ...
> PPU Loading 
> /home/marc/fpc-2.0.2/lib/fpc/2.0.2/units/i386-freebsd/rtl/sysutils.ppu
> ...
> 
> I'm stuck, what is missing here or how can I go on debugging the
> problem?

Nothing is missing. getepochtime is present in the Sysutils unit, but is not 
exposed,
as it's not cross platform. You should be using fptime.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Marco van de Voort
> > fpc 2.0.2.
> > 
> > CommonTypes.pp(207,21) Error: Identifier not found "GetEpochTime"
> 
> http://www.freepascal.org/docs-html/rtl/oldlinux/getepochtime.html

He uses FreeBSD.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Micha Nelissen
Marc Santhoff wrote:
> Hi,
> 
> I've got some funny problem here. The program compiled well with fpc up
> to version 1.9.4. I haven't touched it for a while and now it fails with
> fpc 2.0.2.
> 
> CommonTypes.pp(207,21) Error: Identifier not found "GetEpochTime"

http://www.freepascal.org/docs-html/rtl/oldlinux/getepochtime.html

Micha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GetEpochTime not found

2006-12-09 Thread Marco van de Voort
> I've got some funny problem here. The program compiled well with fpc up
> to version 1.9.4. I haven't touched it for a while and now it fails with
> fpc 2.0.2.

Afaik there was only a *nix implementation and that was already covered by
the Unix (fp)time function, so it got cleaned up in 2.0 in the cleanup's
after the implementation of the Exec* functions.

 
> I'm stuck, what is missing here or how can I go on debugging the
> problem?

Nothing, just use fptime.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] RE: [lazarus] Article on Pixel.

2006-12-09 Thread George Birbilis
> > > The latest issue of Linux Journal features an article about Pixel
> > > (By Pavel Kanzelsberger).
> > > It gives it a very good comment. Pity it's not mentioned
> that it's
> > > written using FPC.
> > > (the article is written by a writer/publisher, not a programmer).
> > >
> > > For the Lazarus users: Pixel is written using a
> widget-set developed
> > > by Pavel.
> >
> > Greetings,
> > Is it online?
>
> The article ? Not that I know of. The program is:
> http://www.kanzelsberger.com/

I don't see Lazarus mentioned at the splash screen of the windows version
(some of you guys are mentioned, but wouldn't harm to mention Lazarus too or
instead)
Also didn't notice Lazarus button or something at the website (didn't look
much though, maybe have missed it)


George Birbilis ([EMAIL PROTECTED])
Computer & Informatics Engineer
Microsoft MVP J# for 2004-2006
Borland "Spirit of Delphi"
++ QuickTime, Delphi, ActiveX, .NET components ++
http://www.kagi.com/birbilis
++ Robotics ++
http://www.mech.upatras.gr/~Robotics
http://www.mech.upatras.gr/~robgroup




  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 8/12/2006 11:17:33 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] RE: [lazarus] Article on Pixel.

2006-12-09 Thread George Birbilis
> The latest issue of Linux Journal features an article about
> Pixel (By Pavel Kanzelsberger).
> It gives it a very good comment. Pity it's not mentioned that
> it's written using FPC.
> (the article is written by a writer/publisher, not a programmer).
>
> For the Lazarus users: Pixel is written using a widget-set
> developed by Pavel.

Greetings,
Is it online? 



  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 0653-5, 05/12/2006
Tested on: 8/12/2006 6:46:35 ??
avast! - copyright (c) 1988-2006 ALWIL Software.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] UML state machine drawing tool

2006-12-09 Thread Wanderlan Santos dos Anjos

Hello Marc,

My company is making this now. www.channeltecnologia.com/en/XDA.asp. The
download will be online at february.

--
Att,

Wanderlan Santos dos Anjos
Coordenador
PRX - Programa de Redesenvolvimento em XDA
Channel Tecnologia
(061) 3362-3361; 9963-2412


On 12/8/06, Marc Santhoff <[EMAIL PROTECTED]> wrote:


Hi,

is anyone aware of a UML tool capable of making class diagrams and state
diagrams and emitting fpc compilable pascal code (or at least being
configurable to do so)?

TIA,
Marc


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal