[Lazarus] newbie questions

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jun 1 12:47:52 CEST 2012




Marco Ciampa <ciampix at libero.it> hat am 1. Juni 2012 um 12:05 geschrieben:

> 1) is this a developers only ml? Am I in the wrong list to ask general usage
>    questions? I case vould you (please) point me to the right ml? TIA


You are welcome.
This list is about Lazarus. There are many other lists about fpc in general and
about using fpc with other libraries/projects.



>
> 2) the real question(s).
>
> I work in a high school. I do not usually use fpc/lazarus but the whole
> project is interesting for me since it is able to do so many things that
> I've never seen in any other RAD tool, free or not.


:)



>
> We use fpc for education (algorithms/logic/etc.) mainly in the small
> time space in the math lessons but:
>
>  - DevPascal is old, buggy, undeveloped, untranslated and somehow works
>    very bad under Windows if you are not an administrator
>    (like a student in a school PC)
>
>  - FreePascal is a Dos app. , really ugly as was TP 20 years ago with
>    similar concern regarding the multiuser use with Win...


No, Free Pascal is the compiler, some tools and a lot of libraries. It also has
a console IDE called "fp".
Most compilers are command line utilities and fpc is no exception.
Lazarus simply calls fpc to compile your code.
Console applications are far older than DOS, still the best tool for many tasks
and there are still new console tools are invented.



>
>  - Lazarus works perfectly in Windows, is easy to install in school as
>    at home and it works under Linux and Mac which is a real plus.
>
> I've found some Delphi examples around in Internet, like this site:
>
> http://www.pierotofy.it/pages/sorgenti/Pascal/
>
> in particular this small game:
>
> http://www.pierotofy.it/pages/sorgenti/dettagli/18955-Connect_Four/
>
> If I import in Lazarus it works like a charm.
>
> Ok now the real questions:
>
> 1) it "uses windows, graph;" where can I find reference info, examples
>    and other doc about these libs?


These are not Lazarus units.
The windows unit is simply the binding to the MS Windows libraries, so you can
find the information at msdn.

I never used the graph unit, so I can't help here.



>
> 2) if I vould like to port this program under Linux I imagine that the
>    "windows" lib could be unusable. The shortest way to do it is ... ?
>    Hints on how to do it are where?



The graph unit exists under Linux too. FPC provides platform independent
functions for most system tasks.



Mattias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120601/7ea3da6a/attachment-0003.html>


More information about the Lazarus mailing list