Sign in Join
Wiki copytemporary

Programming in Symbian OS: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Programming in Symbian OS

OldNewLine
1+This page is a tutorial about how one can use the Symbian OS API to write software
2+
3+## Overview
4+
5+### Hello World
6+
7+**Description**
8+
9+When started, this software will display a 'My Pascal Hello' message on the screen and then quit. The message will remain for about 5 seconds.
10+
11+**Notes**
12+
13+- User_InfoPrint will return a integer with a error message, but we just ignore it on this hello world
14+- We are using the procedural bindings, througth the symbian.pas unit, and not the object-oriented bindings
15+
16+**Code**
17+
18+QPasHello.ini
19+
20+``` ini
21+[Main]
22+EXENAME=QPasHello.exe
23+TARGETTYPE=EXE
24+UID2=0x100039CE
25+UID3=0xE1000002
26+
27+[Files]
28+source0=QPasHello.pas
29+```
30+
31+QPasHello.pas
32+
33+``` pascal
34+program qpashello;
35+
36+{$mode objfpc}{$H+}
37+
38+uses symbian;
39+
40+var
41+ aMsg: array[0..255] of Char;
42+begin
43+ aMsg := 'My Pascal Hello';
44+ User_InfoPrint(aMsg);
45+end.
46+```
47+
48+## See Also
49+
50+- [[SymbianOS]]
51+- [[Symbian OS Internals]]
52+
53+---
54+*From the Free Pascal wiki, page "Programming in Symbian OS", as it stood on 2020-02-23 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
55+Category: Symbian

Back to history