Namespaces
Variants
Actions
Revision as of 08:34, 18 September 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Application without loading resource File

Jump to: navigation, search
Article Metadata

Article
Created: giridharn (25 May 2007)
Last edited: hamishwillee (18 Sep 2012)
In order to stop all attempts to load a resource file you have to do 2 things:

1. You need to replace the function CEikApplication::ResourceFileName()with one that returns a empty files name. Like this function does:

TFileName CMyApplication::ResourceFileName() const
{
return TFileName();
}

where CMyApplication is a subclass of CEikApplication.


2. You need to pass the ENoAppResourceFile flag when calling then function CEikAppUi::BaseConstructL. This is usually called in the ConstructL function of the subclass to CEikAppUi. As in the following example:

void CMyEmptyUi::ConstructL()
{
BaseConstructL(ENoAppResourceFile);
//Now construct the other parts of my application
...
}

where CMyEmptyUi is a sub class of CEikAppUi

154 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved