|
|
Classification: |
C++ |
Category: |
EIKON |
Created: |
11/20/2002 |
Modified: |
04/11/2003 |
Number: |
FAQ-0834 |
Platform: |
Not Applicable |
|
Question: I am trying to build a polymorphic dll which provides custom controls and have compiled it with a rss file. But at runtime
it panics with CONE 14. What do I need to do?
Answer: You need to call CEikonEnv::AddResourceFileL(...) on your resource file. This is done for you automatically by AppArc when you create a .app file, but not in the case of other
dlls. _LIT(KResourceFileName,\\System\\Libs\\ResourceFileName.rsc); CEikonEnv* eikEnv=CEikonEnv::Static(); //cache the Eikon pointer, as Static() is slow BaflUtils::NearestLanguageFile(eikEnv->FsSession(),KResourceFileName); //for localization eikEnv->AddResourceFileL(KResourceFileName);
|
|
|