Testing Console Applications In The Emulator


Console applications are especially useful when we just want to perform a quick test of some functionality we’ve developed.

This tip shows how we can easily run our console applications in the emulator. We will go through how to launch console applications for both 2nd and 3rd edition in eight steps. The screen shots and procedure was created using Carbide.c++ Express 1.1.


Step-1-2-3: We start by creating our console application in three steps, each shown in the following figure. In the first step we start by using the Carbide.c++ application wizard to create a Symbian OS C++ project, and select the Basic console application (EXE) template. I named my project testexe, we will need the name later on when we attempt to launch our applications in the emulators.


I also selected both a 2nd and 3rd edition SDK to illustrate how console application can be easily be tested using multiple SDKs.




Step-4: First lets try the console application using the 2nd edition emulator – this is really easy, we just make sure the right Active Build Configuration is selected and press the blue Run icon.





Step-5: The emulator now starts, and you should see the following.






Step-6: Now lets try the same using the 3rd edition emulator, first we make sure we have selected the correct build configuration. After this we need to create and make a small change to the run configuration. Right click you project in the C/C++ Project View and select Run As->Run..






Step-7: As this is a new project we need to create a run configuration for it, do this by pressing new. A new run configuration is now created using default parameters. To make our emulator start in console mode we need to change the Emulator line from using epoc.exe to eshell.exe, save you change by pressing Apply, and fire up the emulator by pressing Run.




Step-8: You should now see the emulator start in a DOS-like command line environment. To execute our application simply enter its name, in my case testexe on the command line and press enter. Sometimes using this approach the shell is not immediately visible in the emulator, you should however be able to switch to it by pressing Alt+Ctrl+Shift+T, which brings up the tasklist.





That should start your console application.



Department of Electronic Systems | Aalborg University | Niels Jernes Vej 12 | DK-9220 Aalborg | Denmark
Phone: (+45) 9635 8695 | Fax (+45) 9815 1583 | E-mail ies(at)ies.aau.dk
Copyright © 2006 Department of Electronic Systems

Last update:17-03-2007