This page was last modified 06:16, 26 November 2007.
Running Console Applications in Carbide.c++
From Forum Nokia Wiki
Especially when starting to learn development for Symbian OS, it is often faster to use the console instead of using a full UI application. It makes your application easier to grasp and to debug. The main advantage is that the emulator starts up instantly and does not take several seconds to load like the full UI version, making experimenting around with cleanup stack issues, descriptors and so on a lot easier.
Configuring the Emulator
To run console applications in the S60 3rd Edition emulator, you have to reconfigure the emulator to start up using the console mode. Otherwise, it'd load up the full user interface - which is obviously not what you want.
To do this, search the epoc.ini-file. It should be located in the <EPOCROOT>\epoc32\data\-directory of the S60 SDK you're working with. Once there, just add the word "textshell" (without the quotes) to a new line at the beginning of the file.
When you want to work with UI applications again, don't forget to remove the "textshell"-line again!
Configuring Carbide.c++
The run settings available through Carbide.c++ have to be adapted as well. The easiest solution seems to be to just compile your console application project for "S60 3.x Emulator Debug" and run it once. This makes the IDE automatically generate the run configuration for your project, saving you some work. However, the emulator won't start up your console application in this configuration.
Therefore, you should now right-click the project and choose "Run -> Run As...". In the window that will pop up now, remove (!) the contents of the "Emulator"-field. This might seem strange, but if you use this configuration to start your application, you will see that it'll work out fine.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Logging during ODD | santhosh1980 | Symbian Tools & SDKs | 3 | 2008-01-11 13:25 |
| How to launch a console application in symbian 3rd edition FP1 | neeraj_star2004 | General Symbian C++ | 7 | 2007-10-03 07:32 |
| CAknInformationNote from .exe | ceehira | General Symbian C++ | 4 | 2006-07-27 10:53 |
| Why can't get reference to Printf() | wuxiang00 | General Symbian C++ | 2 | 2004-09-08 10:42 |
| Carbide.c++ is driving me nutz - IGNORES my breakpoints | x_ploit_x | Symbian Tools & SDKs | 3 | 2007-10-29 14:05 |

