FP – Lazarus

nice C++ tutorial for beginners, from embarcadero

Thursday 13 December 2012, 16:27
ivan.revelli@synaptica.info

Those sections of C++ tutorials are very simple. Otherwise they explain the differences between Delphi (pascal) language and C++.

Good job:


Session 1:

Session 2:


Delphi and dynamic properties

Wednesday 3 February 2010, 16:52
ivan.revelli@synaptica.info

[lang_it]

Linguaggio : Borland Delphi 7

Sistema Operativo : Win Xp Pro

Come premessa a volte è necessario rendere l’applicazione che si stà  sviluppando il più flessibile possibile. Per evitare di avere migliaia di personalizzazioni per migliaia di clienti. Una cosa che può aiutare in questo è la modifica banale di alcune proprietà  dei componenti dell’applicaiozne stessa a runtime in funzione di particolari parametri.

In Delphi è possibile fare questo in modo molto semplice senza dover scrivere granchè di codice, per rendere ancora più semplice la cosa ho preparato una banale applicazione d’esempio scaricabile da :  [download id=”2″]

In particolare tale applicazione
:

  • mostra come sia possibile maneggiare un Componente (Oggetto) partendo dal nome dello stesso :

  • come ottenere l’elenco delle proprietà  e, dei relativi nomi, da un definito componente

  • impostare il valore di una proprietà  partendo dal componente a cui appartiene e dal suo nome

[/lang_it]

[lang_en]

Linguaggio : Borland Delphi 7

Sistema Operativo : Win Xp Pro

Sometimes, you need to extend the flexibility of your application, to prevent managinig thousands release of an application for thousands customore.One of the most important feature is the posibility of modify a component property value at runtime.

With Delphi is possible and simple to do like in this demo application: [download id=”2″]

The core features of this demo application are :
:

  • get an object from his name ,using a string, that can be filled in a ini file or xml or db table :

  • obtain the list of properties and published methods/event of the selected object

  • setting the value of a property, for simple we have used SetPropValue , an untyped method that use a variant as parameter to send to selected property of the object

[/lang_en]

Serial Comunication on Fpc (Target HW : Arduino)

Wednesday 23 December 2009, 18:25
ivan.revelli@synaptica.info

arduino

We have tried the Synapse Library, to build an application with Lazarus for serial comunication on Linux.

The library seems very good, no need installation, only using unit, in this case synaser.pas. The project is open source and well organized.

With the sample project we connected an Arduino that is a very cheap microcontroller.

Some example of using Synapse Library can be found on http://wiki.freepascal.org/Hardware_Access .

the program that read and write to usb as a serial port:

appDemo

the piece of code that use synaser.pas :

connect procedure

hoping that is interesting
happy Christmas

Lazarus 0.9.26.2-0 beta ..

Thursday 18 June 2009, 8:33
ivan.revelli@synaptica.info

Lazarus

The Lazarus project is a Delphi clone IDE based on the open source project “Free Pascal”, this project exists from several years. Under windows i use Delphi that is a really rocks , the advantage of Lazarus is that is OpenSource and work under a lot of O/S like Windows, MacOSX and Linux. The compiler of Lazarus is soo fast a the code produced is really good and fast.
Last month was released the new version of Lazarus , and i am trying to use the 0.9.26.2-0 beta under Ubuntu Hardy, i found it really good and a lot of advanced between prev versions. In this period the lazarus comunity is on working a lot and there are a lot of new free components usable by Lazarus and Delphi. The compatibility between Delphi and Lazarus is good except for the components who not run on Lazarus.
Here you can find the lastest snapshot of the project : http://snapshots.lazarus.shikami.org/lazarus/

try it is cool
by Ivan

Scoprite cosa possiamo fare per il vostro business
I nostri linguaggi