You Are Here:

Community: Wiki

This page was last modified on 22 June 2009, at 23:05.

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.

Image:Carbide console.png

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fTalkE3aE4cargeE5fscreenE5fsaverX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ
RDF Facets: qfnZuserE5FtagQSxconsoleX qfnZuserE5FtagQSxdebugX qfnZuserE5FtagQSxepocE2EiniX qfnZuserE5FtagQSxteE78tshellX