<?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 - Server Localization Question - Comments</title>
 <link>http://www.newlc.com/topic-7447</link>
 <description>Comments for &quot;Server Localization Question&quot;</description>
 <language>en</language>
<item>
 <title>Re: Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-45684</link>
 <description>&lt;p&gt;And he only had to wait 3 years for the answer &lt;img src=&quot;/sites/all/modules/smileys/packs/example/wink.png&quot; title=&quot;Eye-wink&quot; alt=&quot;Eye-wink&quot; /&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 09 Apr 2008 20:55:11 +0200</pubDate>
 <dc:creator>Numpty Alert</dc:creator>
 <guid isPermaLink="false">comment 45684 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-45683</link>
 <description>&lt;p&gt;The API doc states ConfirmSig, is required to be called before using:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://&quot; class=&quot;bb-url&quot;&gt;http://www.symbian.com/developer/techlib/v70sdocs/doc_source/reference/cpp/InterfaceToResourceFiles/RResourceFileClass.html#%3a%3aRResourceFile%3a%3aConfirmSignatureL%28%29&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 09 Apr 2008 20:45:33 +0200</pubDate>
 <dc:creator>dzanter</dc:creator>
 <guid isPermaLink="false">comment 45683 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19123</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Yes, I agree with you....&lt;br /&gt;&lt;br /&gt;Meanwhile I will also test the same in series 60......&lt;br /&gt;&lt;br /&gt;And thanks for you valuable inputs&lt;br /&gt;&lt;br /&gt;Dennis&lt;/div&gt;</description>
 <pubDate>Wed, 11 May 2005 11:23:05 +0200</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 19123 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19122</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;It must be some small difference in the SDK somewhere.&lt;br /&gt;&lt;br /&gt;Anyway, it&#039;s probably a good idea to call it for both UIQ and S60 regardless.&lt;/div&gt;</description>
 <pubDate>Wed, 11 May 2005 11:20:39 +0200</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 19122 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19121</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;The actual problem is that if I don&#039;t call ConfirmSignatureL then resource file offset is by default 0. (you will get the offset of the resource file from Offset() function)&lt;br /&gt;&lt;br /&gt;And AllocReadLC fetches the resource by extracting 16 bits of LSB of resource ID passed... it then adds this offset to the resource offset which by default is 0.... so you get the wrong offset.... thus you get KErrNotFound error.....&lt;br /&gt;&lt;br /&gt;But if use ConfirmSignatureL then Offset() will return the correct offset and thus no problem in AllocReadLC.....&lt;br /&gt;&lt;br /&gt;Dennis&lt;/div&gt;</description>
 <pubDate>Wed, 11 May 2005 11:14:46 +0200</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 19121 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19120</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Perhaps thats it then&lt;/div&gt;</description>
 <pubDate>Wed, 11 May 2005 11:10:00 +0200</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 19120 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19119</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I am using the same format of the resource file..... &lt;br /&gt;&lt;br /&gt;But I am working on UIQ 2.0 emulator..... &lt;br /&gt;&lt;br /&gt;Dennis&lt;/div&gt;</description>
 <pubDate>Wed, 11 May 2005 11:07:22 +0200</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 19119 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19118</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Wired.&lt;br /&gt;&lt;br /&gt;On what emulator? &amp;nbsp;I use that on Series 60 1.2 (build with the 1.2 SDK) and S60 2.0 (built with either the 2.0 SDK or the 1.2 SDK) and it works fine on both the emulator or on target.&lt;br /&gt;&lt;br /&gt;Are you using a resource file just like that, or do you have anything else in it?&lt;br /&gt;&lt;br /&gt;The SDK claims you must call it before calling Alloc etc, so it probably should be in there.&lt;/div&gt;</description>
 <pubDate>Wed, 11 May 2005 11:05:01 +0200</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 19118 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19117</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;My code is crashing in AllocReadLC if I don&#039;t use ConfirmSignatureL......&lt;br /&gt;&lt;br /&gt;Dennis&lt;/div&gt;</description>
 <pubDate>Wed, 11 May 2005 11:04:33 +0200</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 19117 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19116</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am saying this because I am also using the same piece of code.... and it is crashing in my emulator..... but if use ConfirmSignatureL then it runs smoothly.....&lt;br /&gt;&lt;br /&gt;I hope you have gone through the following link&lt;br /&gt;&lt;a href=&quot;http&amp;#58;//www.cs.tut.fi/~mobo/Symbianv6onedocs/devlib/Common/APIReference/InterfaceToResourceFiles/RResourceFileClass.html#%3a%3aRResourceFile%3a%3aConfirmSignatureL%28%29&quot; target=&quot;_blank&quot;&gt;http://www.cs.tut.fi/~mobo/Symbianv6onedocs/devlib/Common/APIReference/InterfaceToResourceFiles/RResourceFileClass.html#%3a%3aRResourceFile%3a%3aConfirmSignatureL%28%29&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So what do you thing am I doing wrong here..... what might be the difference in your code and mine that makes the same piece run on your end but not mine...&lt;br /&gt;&lt;br /&gt;Dennis&lt;/div&gt;</description>
 <pubDate>Wed, 11 May 2005 11:02:53 +0200</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 19116 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19115</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Nope, not to my knowledge.&lt;br /&gt;&lt;br /&gt;I have used that code many a time to localize a EXE. &amp;nbsp;In fact, it&#039;s copied and pasted out of a working bit of code for one.&lt;/div&gt;</description>
 <pubDate>Wed, 11 May 2005 10:21:07 +0200</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 19115 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19114</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi didster,&lt;br /&gt;&lt;br /&gt;Don&#039;t you have to call &lt;b&gt;ConfirmSignatureL()&lt;/b&gt; before calling AllocReadLC in &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;HBufC8* readBuffer = iResFile.AllocReadLC&amp;#40;aId&amp;#41;; &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Regards&lt;br /&gt;Dennis&lt;/div&gt;</description>
 <pubDate>Wed, 11 May 2005 05:35:38 +0200</pubDate>
 <dc:creator>dennis_george</dc:creator>
 <guid isPermaLink="false">comment 19114 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19113</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Excellent. That&#039;s just what I was looking/hoping for.&lt;br /&gt;&lt;br /&gt;As with all things Symbian, it&#039;s easy when you know how. The trick is knowing - or having luck with search engines - not to mention luck with book indexes. Luck which deserted me in this case. Actually, even now I know the answer - RResourceFile isn&#039;t in the index of the book I had. Fortunately, the Richard Harrison books arrived in the post this morning and they do have it - so hopefully, they&#039;ll give me the clues I need in future.&lt;br /&gt;&lt;br /&gt;Anyway, thanks again - and thanks for taking the trouble to stick in all that example code too. You&#039;re a star.&lt;/div&gt;</description>
 <pubDate>Fri, 06 May 2005 10:54:58 +0200</pubDate>
 <dc:creator>meerkat</dc:creator>
 <guid isPermaLink="false">comment 19113 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19112</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;You really don&#039;t need to mess about with CONE into EXEs if all you want to do is read a text resource:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;_LIT&amp;#40;KResFile, &amp;quot;MyApp.rsc&amp;quot;&amp;#41;;&lt;br /&gt;&lt;br /&gt;RResourceFile iResFile;&lt;br /&gt;&lt;br /&gt;CMyApp&amp;#58;&amp;#58;~CMyApp&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;iResFile.Close&amp;#40;&amp;#41;;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;void CMyApp&amp;#58;&amp;#58;ConstructL&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;TFileName aFile&amp;#40;KResFile&amp;#41;;&lt;br /&gt;BaflUtils&amp;#58;&amp;#58;NearestLanguageFile&amp;#40;iFs, aFile&amp;#41;;&lt;br /&gt;iResFile.OpenL&amp;#40;iFs, aFile&amp;#41;;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;HBufC* CMyApp&amp;#58;&amp;#58;ReadResourceLC&amp;#40;TInt aId&amp;#41;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;#123;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;HBufC8* readBuffer = iResFile.AllocReadLC&amp;#40;aId&amp;#41;;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TResourceReader theReader;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;theReader.SetBuffer&amp;#40;readBuffer&amp;#41;;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TPtrC textdata = theReader.ReadTPtrC&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;HBufC16* textBuffer = HBufC16&amp;#58;&amp;#58;NewL&amp;#40;textdata.Length&amp;#40;&amp;#41;&amp;#41;;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;*textBuffer = textdata;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;CleanupStack&amp;#58;&amp;#58;PopAndDestroy&amp;#40;readBuffer&amp;#41;;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;CleanupStack&amp;#58;&amp;#58;PushL&amp;#40;textBuffer&amp;#41;;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;return textBuffer;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;#125;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Will read and return the text based resource, in the same way CONE does.&lt;br /&gt;&lt;br /&gt;Your RSS file will need to be sligtly different to usual though. &amp;nbsp;Here is an example of one which will work with the above code:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;// &amp;nbsp;INCLUDES&lt;br /&gt;#include &amp;lt;eikon.rh&amp;gt;&lt;br /&gt;#include &amp;quot;MyApp.loc&amp;quot;&lt;br /&gt;&lt;br /&gt;//&lt;br /&gt;// Locallisation&lt;br /&gt;///////////////////////////////&lt;br /&gt;STRUCT STRING&lt;br /&gt; &amp;nbsp; &amp;nbsp;&amp;#123;&lt;br /&gt; &amp;nbsp; &amp;nbsp;LTEXT text;&lt;br /&gt; &amp;nbsp; &amp;nbsp;&amp;#125;&lt;br /&gt;&lt;br /&gt;RESOURCE STRING r_confirm &amp;#123; text = q_confirm; &amp;#125;&lt;br /&gt;RESOURCE STRING r_done &amp;#123; text = q_done; &amp;#125;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Now you just call ReadResourceLC(R_CONFIRM)&lt;br /&gt;&lt;br /&gt;As you would do if using CONE.&lt;/div&gt;</description>
 <pubDate>Fri, 06 May 2005 09:44:07 +0200</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 19112 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447#comment-19111</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Thanks. That topic does confirm that CCoeEnv can be available to exe&#039;s - hence presumably servers. So it does help, thanks.&lt;br /&gt;&lt;br /&gt;I was already doing what that FAQ suggests however. But that confirmation is nice. I&#039;ll spend some more time trying to figure out what I&#039;m doing wrong then.&lt;br /&gt;&lt;br /&gt;However, if anyone thinks I&#039;m barking up the wrong tree and there&#039;s an easier way to get resource info into a server/exe file, please shout.&lt;br /&gt;&lt;br /&gt;Cheers.&lt;/div&gt;</description>
 <pubDate>Fri, 06 May 2005 09:40:05 +0200</pubDate>
 <dc:creator>meerkat</dc:creator>
 <guid isPermaLink="false">comment 19111 at http://www.newlc.com</guid>
</item>
<item>
 <title>Server Localization Question</title>
 <link>http://www.newlc.com/topic-7447</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-7447&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-7447#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Thu, 05 May 2005 16:22:12 +0200</pubDate>
 <dc:creator>meerkat</dc:creator>
 <guid isPermaLink="false">8067 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
