Re: [fpc-pascal] GRAPHICS HELP : PLEASE PLEASE????

2009-06-28 Thread Graeme Geldenhuys

Zachary Marlow wrote:
Everyone I need some help can anyone help me and give some 
simple graphics code for reference.


You need to be a lot more specific...  What do you want to do?


Regards,
- Graeme -


fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: [fpc-pascal] GRAPHICS HELP : PLEASE PLEASE????

2009-06-28 Thread M Pulis

So, a simple Google  pascal graphics code samples did not help?

Without a _lot_ more detail (beginner, PC/Mac OS etc) we can't  
help you, one please or a dozen


Google first, list second.

Sincerely,
Everyone :-)



On Jun 27, 2009, at 8:32 PM, Zachary Marlow wrote:


Hello,
Everyone I need some help can anyone help me and give some  
simple graphics code for reference.

  Sincerely,
 ZACH

___
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

[fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Graeme Geldenhuys

Hi,

Does FPC support the above OS?  I purchased a while back a Nokia 5800 phone and 
would like to try and write some fun utilities for it. It's just unfair that 
the iPhone users get all the cool apps. :-)


Regards,
- Graeme -


fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: [fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Jonas Maebe


On 28 Jun 2009, at 11:59, Graeme Geldenhuys wrote:


Does FPC support the above OS?


I don't think so. Some Symbian support was committed a long time ago,  
but I don't think it was ever finished.



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


Re: [fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Florian Klaempfl
Jonas Maebe schrieb:
 
 On 28 Jun 2009, at 11:59, Graeme Geldenhuys wrote:
 
 Does FPC support the above OS?
 
 I don't think so. Some Symbian support was committed a long time ago,
 but I don't think it was ever finished.

Making a Symbian tool chain is unfortunatly a real pain.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Graeme Geldenhuys

Felipe Monteiro de Carvalho wrote:


In fact their architecture is so flawed and changes so much between
toolkits and versions that I think that trying to port Free Pascal to



So basically I should have bought a iPhone instead! ;-)  Or I must dust off my 
trusty Garmin iQue M5 PDA which runs Windows Mobile 2003. Unfortunately my PDA 
doesn't have an accelerometer, but at least it has a GPS. So that could still 
make for some fun apps.


Regards,
- Graeme -


fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: [fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Graeme Geldenhuys

Florian Klaempfl wrote:


Making a Symbian tool chain is unfortunatly a real pain.


Thanks, I'll download the Symbian Java SDK and play around with that instead.


Regards,
- Graeme -


fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: [fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Felipe Monteiro de Carvalho
There is code enough to make some hello world applications for the UIQ
3 simulator, but nothing for real devices. Unfortunately several
design flaws in the Symbian architecture make the work of creating a
compiler for it much harder then necessary. The flaws include
providing a x86 simulator with a different architecture and toolchain
from the real device instead of an arm emulator like there is for
PocketPC, which alone is a huge problem, plus a crazy toolchain which
needs tons of Perl code and batch scripts to be used and to complete
the mess each Symbian Toolkit is incompatible with the other ones (and
themselves in different versions), and they are all written in C++,
which adds to the difficulty in creating a native compiler for the
target.

All of this made the work of porting the compiler for UIQ much harder
then I initially imagined it would be (and then it should be too).

In fact their architecture is so flawed and changes so much between
toolkits and versions that I think that trying to port Free Pascal to
Java Bytecode (which runs on Symbian systems) would have been a better
choice. At least it's a stable target with emulators and an easy to
use toolchain with the Jasmin assembler.

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


Re: [fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Jonas Maebe


On 28 Jun 2009, at 20:01, Graeme Geldenhuys wrote:


So basically I should have bought a iPhone instead! ;-)


Not really. The problem with the iPhone is that you cannot run any  
self-written applications on it (in an Apple-sanctioned way) without  
subscribing to Apple's $99/year developer program.


On the plus side, this:


The flaws include
providing a x86 simulator with a different architecture and toolchain
from the real device instead of an arm emulator like there is for
PocketPC, which alone is a huge problem



is also true for the iPhone, but it's not a problem at all there,  
because the x86 simulator is basically Mac OS X/i386 with some extra  
frameworks (I didn't have to change anything at all to the i386  
compiler for it to generate working applications for the iPhone  
simulator).



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


[fpc-pascal] Insert into ... mysql

2009-06-28 Thread César Espinoza
Hi all  !!

I did! I can now connect and query to mysql

fpc 2.2.4, console, Macosx 10.5 leopard, Mac book Intel

But I can't (may be I dont know :-( ) insert data in a table

 connect mysql  ... ok
  select db ... ok
.
  new(consulta);
  consultastr:='INSERT INTO lugares (lugar) values (''Sala'')';
  strPCopy(consulta,consultastr);
  writeln ('Executing query : ',Consulta,'...');
if (mysql_query(sock,consulta)  0) then
  begin
  Writeln (stderr,'Query failed ');
  writeln (stderr,mysql_error(sock));
  Halt(1);
  end;
--

What is wrong?
Thanks in advance


-- 
---
César Espinoza Soto
-
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Insert into ... mysql

2009-06-28 Thread Henry Vermaak
2009/6/28 César Espinoza cesarespinozas...@gmail.com:
 Hi all  !!

 I did! I can now connect and query to mysql

 fpc 2.2.4, console, Macosx 10.5 leopard, Mac book Intel

 But I can't (may be I dont know :-( ) insert data in a table
 
  connect mysql  ... ok
   select db ... ok
 .
   new(consulta);
   consultastr:='INSERT INTO lugares (lugar) values (''Sala'')';
   strPCopy(consulta,consultastr);

Is there enough space allocated for consulta to take
length(consultastr)+1?  Why don't you just use:

mysql_query(sock,PChar(consultastr))?

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


Re: [fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Graeme Geldenhuys

Jonas Maebe wrote:


Not really. The problem with the iPhone is that you cannot run any 
self-written applications on it (in an Apple-sanctioned way) without 
subscribing to Apple's $99/year developer program.


And it's such s**t I don't give a toss about. I paid for the device, I wrote 
the software, so why can't I run it on hardware I legally purchased.  I 
seriously doubt that American law will hold up in all countries including South 
Africa. Also the reason I hope Apple looses the court case against Phystar - 
it's the same principal. Anyway, that's totally off topic and for another 
discussion.

As far as I understand, the iPhone runs a similar kernel (freebsd based) as Mac 
OS X is. So yes, I would imagine supporting the one would help the other. I was 
last year as a major security conference in South Africa and there they showed 
how easy it was to hack the iPhone - remotely enabling the video camera and 
record phone calls without the user knowing. Quite scary. Anyway, the point is, 
the hacker showed us how he does it and he simple ssh or telnet'd into the 
iPhone and he used basic unix commands from the command line interface on the 
iPhone. Pretty cool stuff. :-)


Regards,
- Graeme -


fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

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


Re: [fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Florian Klaempfl
There is still a 1k Bounty for an FPC Symbian port ;)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Felipe Monteiro de Carvalho
On Sun, Jun 28, 2009 at 4:41 PM, Jonas Maebejonas.ma...@elis.ugent.be wrote:
 is also true for the iPhone, but it's not a problem at all there, because
 the x86 simulator is basically Mac OS X/i386 with some extra frameworks (I
 didn't have to change anything at all to the i386 compiler for it to
 generate working applications for the iPhone simulator).

I disagree, it may not be a problem from the compiler development
point-of-view, but a simulator is much worse then an emulator which
gives you a much closer reproduction of the working of the real
device.

iPhone runs an arm processor, then you may have a perfectly working
x86 application then bang, alignment failure in the arm processor.
While with the PocketPC emulator this problems are captured right in
the emulation step.

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


Re: [fpc-pascal] Development for Symbian OS (S60 5th edition)

2009-06-28 Thread Jonas Maebe


On 28 Jun 2009, at 22:56, Graeme Geldenhuys wrote:

As far as I understand, the iPhone runs a similar kernel (freebsd  
based) as Mac OS X is.


It's a bit of an oversimplification to call Mac OS X' kernel FreeBSD- 
based. See here for some background: http://books.google.com/books?id=K8vUkpOXhN4Cpg=PA48 
 (under 2.4 The xnu kernel). But that's irrelevant, since FPC for  
Mac OS X does not use any direct kernel interface, due to the kernel  
interface not being supported for application development (in practice  
this means that the system call interface can change even between  
minor OS patches, if deemed useful for whatever reason).


On Mac OS X, we use libc, and that interface is indeed pretty much  
100% compatible between the desktop and iPhone versions of Mac OS X.



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


Re: [fpc-pascal] GRAPHICS HELP : PLEASE PLEASE????

2009-06-28 Thread Zachary Marlow
Well 
  Like How to draw a circle , I just need some example code please 
 
PS THANKS FOR READING AND REPLYING



--- On Sun, 6/28/09, Graeme Geldenhuys grae...@opensoft.homeip.net wrote:

From: Graeme Geldenhuys grae...@opensoft.homeip.net
Subject: Re: [fpc-pascal] GRAPHICS HELP : PLEASE PLEASE
To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org
Date: Sunday, June 28, 2009, 2:05 AM

Zachary Marlow wrote:
         Everyone I need some help can anyone help me and give some simple 
graphics code for reference.

You need to be a lot more specific...  What do you want to do?


Regards,
- Graeme -


fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

___
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

[fpc-pascal] Re: SHA1 implementation

2009-06-28 Thread Paul Nicholls
Graeme Geldenhuys 
graemeg-7urf0cyadk+bldxiawxz59huzzzso...@public.gmane.org wrote in message 
news:4a47b06f.4030...@opensoft.homeip.net...
 Hi,

 Does FPC contain a cross-platform SHA1 algorithm implementation?  I used 
 Lazarus IDE's Search in files feature across the whole FPC 2.2.5 and saw 
 some references to the word sha1, but nothing that looks like the actual 
 implementation.


 Regards,
 - Graeme -


Hi Graeme,
Maybe this will help?

http://wiki.freepascal.org/DCPcrypt

cheers,
Paul 

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

Re: [fpc-pascal] Insert into ... mysql

2009-06-28 Thread John Coppens
On Sun, 28 Jun 2009 15:42:04 -0500
César Espinoza cesarespinozas...@gmail.com wrote:

 But I can't (may be I dont know :-( ) insert data in a table

If you can query, but not insert, there are a few things to check:

- Is the syntax of your insert correct? I mean, does column 'lugar' exist,
  and is it a varchar column, etc.?
- Are you allowed to insert? (Check the privileges for the person
  as who you log in. Insert, update, select, all have separate 'enables')
- What is the message returned by mysql_error?

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


Re: [fpc-pascal] GRAPHICS HELP : PLEASE PLEASE????

2009-06-28 Thread John Coppens
On Sun, 28 Jun 2009 18:23:12 -0700 (PDT)
Zachary Marlow zachary_mar...@yahoo.com wrote:

 Well 
   Like How to draw a circle , I just need some example code please 

Check this tutorial:

http://pascalprogramming.byethost15.com/lesson8.php

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