Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Application without loading resource File

From 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 05:34.
85 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.

×