<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - About Symbian UIDs - Comments</title>
 <link>http://www.newlc.com/en/about-symbian-uids</link>
 <description>Comments for &quot;About Symbian UIDs&quot;</description>
 <language>en</language>
<item>
 <title>Re: About Symbian UIDs</title>
 <link>http://www.newlc.com/en/about-symbian-uids#comment-45959</link>
 <description>&lt;p&gt;Please note that there is no UID statement in the MMP file of my DLL at all. I assume that based on the targettype the system assigns default UIDs (1 and 2) to it automagically, but not a UID3.&lt;/p&gt;

&lt;p&gt;And gosh, how slowly N-Gage starts!!! &lt;img src=&quot;/sites/all/modules/smileys/packs/example/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; /&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 22 Apr 2008 12:02:58 +0200</pubDate>
 <dc:creator>tote</dc:creator>
 <guid isPermaLink="false">comment 45959 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: About Symbian UIDs</title>
 <link>http://www.newlc.com/en/about-symbian-uids#comment-45956</link>
 <description>&lt;p&gt;Thanks for the clarification, I didn&#039;t know it was possible to omit the uid3 when automatically loading your dlls.&lt;/p&gt;

&lt;p&gt;So it sounded very confused/confusing when you called the automatic loading for static linking, when static linking is something different entirely  and that doesn&#039;t need any uid at all. (I assume you still need uid1 and uid2 for your dll:s you autoload)&lt;/p&gt;

&lt;p&gt;But I guess it makes sense... Its not strictly needed in this scenario, and doesn&#039;t provide any extra identification from the name of the file now when all dll:s have to be in /sys/bin&lt;/p&gt;

&lt;p&gt;BTW, a good example of how excessive dll-usage can slow down the start of your application, take a look at the N-Gage first-access pack... it has 165(!) dlls that all are likely loaded on startup.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 22 Apr 2008 11:56:55 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 45956 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: About Symbian UIDs</title>
 <link>http://www.newlc.com/en/about-symbian-uids#comment-45955</link>
 <description>&lt;p&gt;I think I&#039;m not confused at all, however, admit that might have been not too accurate.&lt;/p&gt;

&lt;p&gt;First of all, I confirm that TARGETTYPE LIB does exist and even more it is called &lt;span style=&quot;font-weight:bold&quot;&gt;static linkage&lt;/span&gt;. I was wrong and you were right, alh. &lt;img src=&quot;/sites/all/modules/smileys/packs/example/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The other way, called dynamic linking, offers two ways for loading a DLL:&lt;br /&gt;
&lt;ul class=&quot;bb-list&quot; style=&quot;list-style-type:;&quot;&gt;
 &lt;li&gt; Importing a LIB file in your MMP file indicates that the DLL will always be loaded into the context of your executable (OR the executable in which your component is running), during executable start-up. All required information is known build-time that allows 1: the loader to load your DLL, 2: the code to use your DLL. Please note that I did not mention how demand-paging might affect DLL loading on purpose.&lt;/li&gt;
 &lt;li&gt; You don&#039;t &lt;span style=&quot;font-weight:bold&quot;&gt;have to&lt;/span&gt; import the LIB file in the MMP file, but you can locate and load it run-time as well (using RLibrary class). In practice, it means that as long as you don&#039;t load the DLL in question, it won&#039;t be loaded in the process context (unless another component has already loaded it), thus the process will load faster (don&#039;t have to load your DLL) and require less memory throughout the &lt;span style=&quot;font-weight:bold&quot;&gt;whole&lt;/span&gt; life-cycle.&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;

&lt;p&gt;Finally, please note that you &lt;span style=&quot;font-weight:bold&quot;&gt;don&#039;t have to specify a UID&lt;/span&gt; in your DLL&#039;s MMP file if you import its LIB file. We have tried it out and it worked well without any UIDs. I can&#039;t locate the section in SDK help, where it was described that UIDs are really necessary for polymorphic DLLs only. At that time (when I read it years ago) ECOM plug-ins did not exist at all, so I now presume that it applies to polymorphic DLLs + ECOM plug-ins.&lt;/p&gt;</description>
 <pubDate>Tue, 22 Apr 2008 11:21:35 +0200</pubDate>
 <dc:creator>tote</dc:creator>
 <guid isPermaLink="false">comment 45955 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: About Symbian UIDs</title>
 <link>http://www.newlc.com/en/about-symbian-uids#comment-45950</link>
 <description>&lt;p&gt;I think you are confused.&lt;/p&gt;

&lt;p&gt;If you build a dll, you specify TARGETTYPE dll and you you get a lib and dll pair.&lt;br /&gt;
You have to specify a UID.&lt;/p&gt;

&lt;p&gt;You can then either specify the lib in the mmp or your exe, or use RLibrary.&lt;/p&gt;

&lt;p&gt;BOTH ways are dynamic linking, in the first case though, it is done automatically for you when executing your exe, but it still is dynamic linking (using a dynamically loadable library).&lt;/p&gt;

&lt;p&gt;Then there is also &quot;static linking&quot; but this is quite different, then you specify &quot;TARGETTYPE lib&quot; in your mmp file, and you end up with only a lib file, containing all code. You don&#039;t have to specify a UID.&lt;/p&gt;

&lt;p&gt;Then you have to specify the lib file in the mmp of your exe, and it will be linked into your exe at compile time.&lt;/p&gt;

&lt;p&gt;The main difference isn&#039;t that you can load and unload code, that is more into the &quot;plugin&quot; domain, the point is that the code is not statically included in the binary, but can be shared between several executables.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Tue, 22 Apr 2008 10:29:45 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 45950 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: About Symbian UIDs</title>
 <link>http://www.newlc.com/en/about-symbian-uids#comment-45948</link>
 <description>&lt;p&gt;I meant mentioning the corresponding LIB file in the EXE&#039;s MMP file. That is static linkage. As opposed to dynamic linking, where you use RLibrary to locate and load (and unload) the DLL at any given time during the life-cycle.&lt;/p&gt;</description>
 <pubDate>Tue, 22 Apr 2008 10:20:17 +0200</pubDate>
 <dc:creator>tote</dc:creator>
 <guid isPermaLink="false">comment 45948 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: About Symbian UIDs</title>
 <link>http://www.newlc.com/en/about-symbian-uids#comment-45946</link>
 <description>&lt;p&gt;how do you statically link to a dll?&lt;br /&gt;
static libraries of course do not need any uid, since they are no a file of their own on the phone, but part of the executable they are linked to.&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Tue, 22 Apr 2008 09:37:27 +0200</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 45946 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: About Symbian UIDs</title>
 <link>http://www.newlc.com/en/about-symbian-uids#comment-45944</link>
 <description>&lt;p&gt;I&#039;m not sure I would call this piece of information a &quot;tutorial&quot;. It looks more like a short reference material, a short compilation made of reference material. I do not (and, of course, can not) object to this material being published here but then I do not feel like I&#039;ve been actually &#039;taught&#039; to do something after reading this. So they have all these varieties of UIDs, big deal. In practice, isn&#039;t it the opposite: you&#039;ve been told to implement such and such exe (dll, device driver or whatever) you have a hell of headache with your implementation but it&#039;s difficult to imagine that you&#039;ve chosen a wrong UID or have a lot of headache with UIDs at all. Teach me something applicable to my job, please. Oh, and actually the only might-be-interesting place - about SecureId - wasn&#039;t explained correctly as was noticed before. Oh, and shouldn&#039;t there have been very briefly explained UID ranges and very briefly outlined a process of acquiring an UID from Symbian (as opposed to using a development UID).- this is an important thing indeed. And who is srivivek anyway.&lt;/p&gt;</description>
 <pubDate>Tue, 22 Apr 2008 09:07:31 +0200</pubDate>
 <dc:creator>Genesis P</dc:creator>
 <guid isPermaLink="false">comment 45944 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: About Symbian UIDs</title>
 <link>http://www.newlc.com/en/about-symbian-uids#comment-45940</link>
 <description>&lt;p&gt;SecureID is not always same as UID3. You can explicitly specify SecureID in your mmp file.&lt;br /&gt;
And if it is not specified in your mmp then UID3 is taken as the SecureID.&lt;/p&gt;

&lt;p&gt;And if both of them are not specified then SecureID will take the value KNullUID.&lt;/p&gt;</description>
 <pubDate>Tue, 22 Apr 2008 07:15:04 +0200</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 45940 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: About Symbian UIDs</title>
 <link>http://www.newlc.com/en/about-symbian-uids#comment-45938</link>
 <description>&lt;p&gt;Funnily enough, you can statically link to a DLL without any UID specified in its MMP file. Please note that this does not apply to polymorphic DLL and other (e.g. ECOM) plug-ins.&lt;/p&gt;</description>
 <pubDate>Mon, 21 Apr 2008 22:23:02 +0200</pubDate>
 <dc:creator>tote</dc:creator>
 <guid isPermaLink="false">comment 45938 at http://www.newlc.com</guid>
</item>
<item>
 <title>About Symbian UIDs</title>
 <link>http://www.newlc.com/en/about-symbian-uids</link>
 <description>&lt;p&gt;A short introduction to Symbian UIDs&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/about-symbian-uids&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/about-symbian-uids#comments</comments>
 <category domain="http://www.newlc.com/en/taxonomy/term/1">Basics</category>
 <category domain="http://www.newlc.com/en/taxonomy/term/41">Symbian OS</category>
 <category domain="http://www.newlc.com/en/taxonomy/term/146">UID</category>
 <pubDate>Mon, 21 Apr 2008 07:52:04 +0200</pubDate>
 <dc:creator>er.khalid</dc:creator>
 <guid isPermaLink="false">20751 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
