Why doesn't InitializeL get called in my screensaver when I press preview?
| Thu, 2008-03-13 08:48 | |
|
|
My company will soon release a screensaver,but I have to get it working first. I have set the capability EScpCapsPreviewNotification, so when I click "preview" the PluginFunction method gets called. Should the InitializeL(MScreensaverPluginHost* aHost) method also get called by the MScreensaverPluginHost? If so, why doesn't it get called? Or should I call InitializeL from the PluginFunction method? If so,how do I do that? I don't have a pointer to MScreensaverPluginHost. |






Forum posts: 56
some expamples ..
http://wiki.forum.nokia.com/index.php/TSS000430_-_Writing_a_screen_saver_for_S60_3rd_Edition_devices
http://wiki.forum.nokia.com/images/2/20/ExampleScreenSaver.zip
Forum posts: 33
I have read the information on those links.The project you suggested in
http://wiki.forum.nokia.com/images/2/20/ExampleScreenSaver.zip
do not work since it always displays "system error -1" when it is choosen from preview on the emulator.
So I built my saver from another example. I just took this project and extended it with new features:
http://wiki.forum.nokia.com/index.php/ScreenSaver_plug-in_example_for_S60_3rd_Edition?ticket=ST-72212-xECGaDpfQpp5xfqHb3dzfxGT9f0w7y1wX57-20
This example is better because it actually works like it should in the emulator, except that InitializeL never gets called when preview is choosen. Should this method only get called by the pluginhost or should I call it from the PluginFunction method? What can I do to get InitializeL to be called?
I have also tried to make screensaver projects from empy projects in Carbide C++. But everytime I get "no rule to make target" error from the beginning
that I don't know how to get rid of.
I have also tried to make screensaver projects from DLL projects in Carbide C++. But each time I get "frozen export missing from object file" everytime I change the target from DLL to plugin.
Could someone please tell me how the best way is to proceed from here? Make a DLL project, an empty project or try to get the example project working so that InitializeL gets called? I will make a small donation on Paypal to anyone that helps me fix this, so InitializeL gets called. All the animations for the screensaver works like it should, I just have to get the screensaver features working.
Forum posts: 33
I'm still struggling with this issue and I tried to build a screensaver from an empty project, but now it seems the UID's get wrong:
http://www.newlc.com/forum/how-get-uids-right-screensaver-project