Skip to Content
Developing Software for Symbian OS: A Beginner's Guide to Creating Symbian OS v9 Smartphone Applications in C++
book

Developing Software for Symbian OS: A Beginner's Guide to Creating Symbian OS v9 Smartphone Applications in C++

by Steve Babin
December 2007
Beginner to intermediate
460 pages
10h 12m
English
Wiley
Content preview from Developing Software for Symbian OS: A Beginner's Guide to Creating Symbian OS v9 Smartphone Applications in C++

Chapter 4. Symbian OS Programming Basics

This chapter focuses on the fundamentals of Symbian OS programming. So far, I've described smartphones in general, presented some steps to get started with the SDK, walked through some example code, and described the general architecture of the operating system. This chapter, however, marks the real beginning of your Symbian OS programming training as we get down to the basics.

You will not find any references to S60 or UIQ in this chapter. The information presented here is generic for all platforms based on Symbian OS.

I begin the chapter with an overview of the use of C++ in Symbian OS, followed by a look at the basic data types, the key types of classes you'll use and create, and the Symbian OS naming conventions. Then, I show how to program using the error-handling mechanism in Symbian OS, using leaves and traps, and how to use the cleanup stack. Next, I cover libraries in Symbian OS – both statically linked and DLLs.

Finally, I summarize the key points to remember when writing Symbian OS software.

Use of C++ in Symbian OS

C++ is the primary language for software development on Symbian OS since it provides the most efficient and natural interface to the system-level frameworks and APIs, which themselves are written in C++. In fact, Symbian OS itself is written almost entirely in C++. The first version of the operating system (known then as EPOC32) was created before C++ itself was formally standardized, that is, prior to 1998. For this reason, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Borland® Delphi™ 6 Developer's Guide

Borland® Delphi™ 6 Developer's Guide

Steve Teixeira, Xavier Pacheco
Professional Linux® Programming

Professional Linux® Programming

Jon Masters, Richard Blum

Publisher Resources

ISBN: 9780470725702Purchase book