×
Namespaces

Variants
Actions

Application without loading resource File

From Nokia Developer Wiki
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

This page was last modified on 18 September 2012, at 08:34.
44 page views in the last 30 days.
×