Application without loading resource File

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
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()
//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 05:34.
39 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.