Fix or animated splash screen
Here is a short class that you can use to display a splash screen before the main stuff. The zip file contains two projects:
one is SplashDll.mmp which contain the CSplashContainer class definition (which compile as a DLL)
the other is Splash.mmp which is an dummy application (that does actually nothing as it is the default empty application generated by Nokia Series 60 App Wizard) which has a very basic but animated splash screen:
![]() | ![]() |
| The splash screen (the text fades in) | The main screen |
The code is quite simple:
CSplashContainer is a CCoeControl. It just defines three states (ESplash, EMain and EExiting). And call a specific (and virtual) Draw() function depending on the active state. The new draw functions are DrawSplash(), DrawMain() and DrawExiting()). They have exactly the same constraints and prototype as the original CCoeControl's Draw(). Furthermor, a periodic timer is created and can be used to animate each screen at a choosen rate.
CSplashView inherits from CSplashContainer. It provides an implementation for all virtual functions specified by CSplashContainer. It decides of a specific refresh rate for the animation by configuring the CSplashContainertimer (using CSplashView::SetTimerTick()), implements the animation dynamics (CSplashView::Tick()), implements the CSplashView::DrawSplash() and CSplashView::DrawMain(), and decides when changing state (by calling CSplashView::SetState()).
The default menu is still available during the splash screen display. If it is not wished, some code must be added in CSplashContainer to allow the app to deactivate/reactivate it.
Only one control is used for all the states. This can also allow a smooth transition between them.
| Attachment | Size |
|---|---|
| splash.zip | 17.04 KB |








> Fix or animated splash screen
hello when I try to build the example I get the following: Doing first-stage link by name NMAKE : fatal error U1073: don't know how to make '"\Symbian\6.1\Series60\EPOC32\RELEASE\WINS\UDEB\SPLASHCONTAINER.LIB"' Stop. if exist "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERIES60EX\SPLASH\GROUP\SPLASH\WINS\UDEB\SPLASH.exp" del "\Symbian\6.1\Series60\EPOC32\BUILD\SYMBIAN\6.1\SERIES60\SERIES60EX\SPLASH\GROUP\SPLASH\WINS\UDEB\SPLASH.exp" Stopped the build by removing the export object, if present, because the pre-link stage failed Linking... LINK : fatal error LNK1104: cannot open file "\Symbian\6.1\Series60\EPOC32\RELEASE\WINS\UDEB\splashcontainer.lib" Error executing link.exe.
SPLASH.APP - 2 error(s), 0 warning(s)
Can you tell me why this is hapening? Thank you for your time:)
> Fix or animated splash screen
Dear, u r getting these two errors because of u r not building the SPLASHDLL. First build this one after that build SPLASH. I think now u can do it..
Nirmesh Bagadwal
> Fix or animated splash screen
i have an error message when i "abld build thumb urel" it says undefined reference to 'CSplashContainer::DrawMain()'.. .. "relocated truncated to fit: ARM_26" "fatal error U1077:...."
but when i "abld build wins udeb", everything is ok...
> Fix or animated splash screen
hey guys
since this is a tutorial, it'd be great if there is some explanation to help newbie to get started...for e.g. what do i do when i download the zip? it's not a .sis so i am assuming transfering it to my phone won't quite install it!? how do i convert it into an application?
pls advise...all help will b gr8ly appreciated!
error in bldmake bldfiles
hello,
i cant execute the bldmake bldfiles command and the error msg displayed is "\SYMBIAN\6.1\SERIES60\EPOC32EX\SPLASH\GROUP\BLD.INF FATAL ERROR(S): \SYMBIAN\6.1\SERIES60\EPOC32EX\SPLASH\GROUP\BLD.INF(29) : Exported source file \ SYMBIAN\6.1\SERIES60\MYPROJECTS\Splash\inc\SplashContainer.h not found"
anybody has any idea??
tx in advance!
> error in bldmake bldfiles
> error in bldmake bldfiles
> Fix or animated splash screen
Good Example to use for splash screen view.
Thank You Very much for providing such a good and basic example which can be enhance as per diff. requirements.
Really Help me for to develop dynamic/static screen.
> Fix or animated splash screen
I can compile the SplashContainer.dll. However, when I compile the SplashView, i have the following error:
"SplashView.h"L C2247: 'MCoeControlObserver:: TCoeEvent' not acessible because 'CSplashContainer' uses 'private' to inherit from 'MCoeControlObserver'
Anybody know why? Please help.
What is the proper steps in compiling a project with 2 MMP files?
> Fix or animated splash screen
> Fix or animated splash screen
> Fix or animated splash screen
> Fix or animated splash screen
Fix or animated splash screen
I'm getting following error... Sugest me the solution
C:\Symbian\7.0s\Series60_v21_CW\Series60Ex\splash\group>abld build winscw udeb ABLD ERROR: Project Bldmake directory "\Symbian\7.0s\Series60_v21_CW\EPOC32\BUIL D\SYMBIAN\6.1\SERIES60\MYPROJ~1\SPLASH\GROUP\" does not exist BEGIN failed--compilation aborted at C:\Symbian\7.0s\Series60_v21_CW\epoc32\tool s\abld.pl line 137.
As in one of the reply somebody said to change the path according to environment, but still it is not working.
Please help me out.
Thanks, PANKAJ
Fix or animated splash screen
Sorry, the previous was wrong....
Error I'm getting during bldmake command is as follows
C:\Symbian\7.0s\Series60_v21_CW\Series60Ex\splash\group>bldmake bldfiles
\SYMBIAN\7.0S\SERIES60_V21_CW\SERIES60EX\SPLASH\GROUP\BLD.INF FATAL ERROR(S): \SYMBIAN\7.0S\SERIES60_V21_CW\SERIES60EX\SPLASH\GROUP\BLD.INF(28) : Exported sou rce file \SYMBIAN\7.0S\SERIES60_V21_CW\SERIES60EX\SPLASH\GROUP\C:\Symbian\7.0s\S eries60_v21_CW\Series60Ex\splash\inc\SplashContainer.h not found
Thanks,
PANKAJ.