How to get the UID's right in a screensaver project?

Login to reply to this topic.
Sun, 2008-03-16 20:49
Joined: 2008-02-12
Forum posts: 37

I created a screensaver project from generic--->empty project in Carbide C++. I can compile it, but when I try to run it, I get the error message "Program file does not exist". I suspect that the reason for this is that some UID is wrong. Could it be so?

Only the uid3 is genererated by the wizard. How should the other uids be choosen?

The wizard genererates uid2=0 for a DLL project. The document "how to use UIDs" in the symbian OS documentation says "For polymorphic interface (plug-in framework) DLLs, UID2 identifies the interface that the DLL implements." So can uid2 be 0 here? Or what should it be?

Do I change uid1 when I change the target to "plugin"? Is this all I have to do to set uid1?

I also don't know how to set the UID's in the rss file. I have checked the ExampleScreenSaver example and this is what the rss file from that example look like. What is dll_uid and implementation_uid? How shall I set these? Are dll_uid the same as UID1 and interface_uid the same as UID2 and implementation_uid the same as UID3?

There is also an UID in implementation table in the required proxy class. Should this be the same as UID3?
-------------------------------------------
#include
#include

RESOURCE REGISTRY_INFO theInfo
{
dll_uid = 0x08DB622A;
interfaces =
{
INTERFACE_INFO
{
interface_uid = KCScreensaverPluginInterfaceDefinitionUid;
implementations =
{
IMPLEMENTATION_INFO
{
implementation_uid = 0x08DB622A;
version_no = 1;
display_name = "Example Screen Saver";
default_data = "";
opaque_data = "";
}
};
}
};
}

  • Login to reply to this topic.