This document shows a basic 'C' class and use of the cleanup stack.


This shows a typical ‘C’ class, derived from CBase, and highlights the use of two phase construction and use of the cleanup stack to implement the complete construction of an instance of that class on the heap.


Click on the following link to download the example:

Click on the following link to download additional files:

Click browse CClasses to view the example code.

Click browse CommonFramework to view additional files.

Class summary

CBase CleanupStack


The example source code includes the two project files needed for building: bld.inf and the .mmp file.

The Symbian platform build process describes how to build this application, which results in an executable called:

\epoc32\release\<target>\<urel or udeb>\CCLASSES.EXE.


Run the executable CCLASSES.EXE.

Executables for the emulator targets wins and winscw can be run on your PC. Executables for ARM targets must be copied to your target platform before being run.