This page is a tutorial about how one can use the Symbian OS API to write software
Overview
Hello World
Here is the code of the pascal hello world Symbian OS software:
program qpashello;
{$mode objfpc}{$H+}
uses symbian;
var
aMsg: array[0..255] of Char;
begin
aMsg := 'My Pascal Hello';
User_InfoPrint(aMsg);
end.
Some things to be noted about it:
- User_InfoPrint will return a integer with a error message, but we just ignore it on this hello world
- We are using the procedural bindings, througth the symbian.pas unit, and not the object-oriented bindings