<?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 - SMS Reading - Comments</title>
 <link>http://www.newlc.com/forum/sms-reading</link>
 <description>Comments for &quot;SMS Reading&quot;</description>
 <language>en</language>
<item>
 <title>Re: SMS Reading</title>
 <link>http://www.newlc.com/forum/sms-reading#comment-43425</link>
 <description>&lt;p&gt;&lt;code&gt;MSMSRecCallBack&amp;amp; iObserver;&lt;/code&gt;&lt;br /&gt;
This will not work as wheneve u declare a referance it shoul b initialised (irrespective of the type of reference).&lt;br /&gt;
So the soln posted by raghav_an sud work .if its not pls tell the error u r getting so that we can help.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br /&gt;
Amogh&lt;/p&gt;</description>
 <pubDate>Tue, 11 Dec 2007 12:21:05 +0100</pubDate>
 <dc:creator>amargoor</dc:creator>
 <guid isPermaLink="false">comment 43425 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: SMS Reading</title>
 <link>http://www.newlc.com/forum/sms-reading#comment-43358</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;The solution suggested by Rene should work. &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;

&lt;p&gt;Do not change the definition of &quot;iObserver&quot;, keep it as a pointer variable.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;//In .h header file&lt;br /&gt;&lt;br /&gt;class CSMSReceiver;&lt;br /&gt;class MSMSRecCallBack;&lt;br /&gt;&lt;br /&gt;CSMSReceiver* iSmsreceiver;&lt;br /&gt;&lt;br /&gt;MSMSRecCallBack* iObserver;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//In .cpp file&lt;br /&gt;void CinboxreadAppUi::ConstructL()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;iSmsreceiver = CSMSReceiver::NewL(*iObserver);&lt;br /&gt;//This must be declared as &amp;quot;&amp;nbsp; CSMSReceiver::NewL(MSMSRecCallBack&amp;amp; )&amp;quot; in its header file&lt;br /&gt;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 06 Dec 2007 09:57:50 +0100</pubDate>
 <dc:creator>raghav_an</dc:creator>
 <guid isPermaLink="false">comment 43358 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: SMS Reading</title>
 <link>http://www.newlc.com/forum/sms-reading#comment-43350</link>
 <description>&lt;p&gt;Hi,&lt;br /&gt;
    I am just a beginner and am trying to help!!!!&lt;br /&gt;
    May not be technicaly so good(neither symbian nor C++).So, please forgive if I write anything wrong....&lt;br /&gt;
     I am not sure, but ,think something wrong in the way ---------&lt;br /&gt;
     &lt;br /&gt;
void CinboxreadAppUi::ConstructL()&lt;br /&gt;
{&lt;/p&gt;

&lt;p&gt;iSmsreceiver = CSMSReceiver::NewL(iObserver);&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;MSMSRecCallBack* iObserver;&lt;/p&gt;

&lt;p&gt;------------------------------------------------------------&lt;br /&gt;
Here, &lt;br /&gt;
1.Constructor is called to initialise heap memory of AppUi class.&lt;br /&gt;
2.All pointer type member variables are initialised to NULL&lt;br /&gt;
3.Then 2-phase constructor starts&lt;br /&gt;
4.Pointer variables are to be initialised there.&lt;br /&gt;
5. iSmsreceiver = CSMSReceiver::NewL(iObserver);&lt;br /&gt;
                   --------This line requires that &quot;iObserver&quot;(which is also a pointer variable) should be initalised inside ConstructL() before a call to this line is made.&lt;br /&gt;
                   ------So, it depends on sequence of calls to initialise pointer variables&lt;br /&gt;
                                         So, there arises 3 options&lt;br /&gt;
                                                   a.make sure &quot;iObserver&quot; is initialised before iSmsReceiver(in ur second reply you have used &quot;&amp;iObserver&quot; which gives error &quot;&amp; reference member &#039;iObserver&#039; is not initialise&quot;)&lt;br /&gt;
                                                   b.else make iObserver a direct variable , not pointer variable(not sure if it can be done)&lt;br /&gt;
                                                   c.else use inheritance to get &quot;iObserver&quot; object&lt;/p&gt;

&lt;p&gt;                                                  &lt;/p&gt;

&lt;p&gt;About other approach-&gt;&lt;/p&gt;

&lt;p&gt;      To read body of incoming sms, there is another approach in osv9.2&lt;/p&gt;

&lt;p&gt;derive from MMsvSessionObserver,&lt;br /&gt;
and write your code under case EMsvEntries Created:&lt;br /&gt;
                       of HandleSessionEvent()&lt;/p&gt;

&lt;p&gt;Sorry if I am wrong!!!!!!!!&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Thu, 06 Dec 2007 07:02:07 +0100</pubDate>
 <dc:creator>Chinu</dc:creator>
 <guid isPermaLink="false">comment 43350 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: SMS Reading</title>
 <link>http://www.newlc.com/forum/sms-reading#comment-43316</link>
 <description>&lt;p&gt;await..... &lt;img src=&quot;/sites/all/modules/smileys/packs/example/puzzled.png&quot; title=&quot;Puzzled&quot; alt=&quot;Puzzled&quot; /&gt; &lt;/p&gt;</description>
 <pubDate>Wed, 05 Dec 2007 09:24:25 +0100</pubDate>
 <dc:creator>dlingt</dc:creator>
 <guid isPermaLink="false">comment 43316 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: SMS Reading</title>
 <link>http://www.newlc.com/forum/sms-reading#comment-43315</link>
 <description>&lt;p&gt;Hi, &lt;br /&gt;
   I tried this &lt;span style=&quot;font-weight:bold&quot;&gt;CSMSReceiver iSmsreceiver = CSMSReceiver::NewL(*this);&lt;/span&gt; but stll I am getting error.&lt;/p&gt;

&lt;p&gt;   Please help if there is any alternative.&lt;/p&gt;

&lt;p&gt;   Thanks.&lt;/p&gt;</description>
 <pubDate>Wed, 05 Dec 2007 08:31:10 +0100</pubDate>
 <dc:creator>sanjay.singh</dc:creator>
 <guid isPermaLink="false">comment 43315 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: SMS Reading</title>
 <link>http://www.newlc.com/forum/sms-reading#comment-43297</link>
 <description>&lt;p&gt;Hi sanjay,&lt;br /&gt;
   Do little modification as follows:&lt;br /&gt;
Derive your Appui class with MSMSRecCallBack and &lt;br /&gt;
Implements all methods of MSMSRecCallBack in Appui&lt;br /&gt;
Create object of CSMSReceiver  iSmsreceiver = CSMSReceiver::NewL(*this);&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 04 Dec 2007 10:24:33 +0100</pubDate>
 <dc:creator>symbipatni</dc:creator>
 <guid isPermaLink="false">comment 43297 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: SMS Reading</title>
 <link>http://www.newlc.com/forum/sms-reading#comment-43296</link>
 <description>&lt;p&gt;Thanks for reply but i have already tried this but still getting problem&lt;br /&gt;
this time i make changes in SMSReceive.h&lt;br /&gt;
class MSMSRecCallBack;&lt;br /&gt;
MSMSRecCallBack&lt;span style=&quot;font-weight:bold&quot;&gt;&amp;&lt;/span&gt; iObserver;&lt;/p&gt;

&lt;p&gt;and in appui.cpp &lt;br /&gt;
iSMSReceiver = CSMSReceiver :: NewL(*iObserver);&lt;/p&gt;

&lt;p&gt;but i got error&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;font-weight:bold&quot;&gt;a pointer/array type was expected for this operation instead of  MSMSRecCallBack&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;font-weight:bold&quot;&gt;&amp; reference member &#039;iObserver&#039; is not initialise&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;actually i am using SMSReceiver.cpp and SMSReceiver.h code is there any other way to read the content of inbox message in 9.1.&lt;/p&gt;</description>
 <pubDate>Tue, 04 Dec 2007 08:04:11 +0100</pubDate>
 <dc:creator>sanjay.singh</dc:creator>
 <guid isPermaLink="false">comment 43296 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: SMS Reading</title>
 <link>http://www.newlc.com/forum/sms-reading#comment-43283</link>
 <description>&lt;p&gt;Just a guess: Try this, with an added &quot;*&quot; for more C++ fun:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;iSmsreceiver = CSMSReceiver::NewL(*iObserver);&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 03 Dec 2007 19:48:00 +0100</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 43283 at http://www.newlc.com</guid>
</item>
<item>
 <title>SMS Reading</title>
 <link>http://www.newlc.com/forum/sms-reading</link>
 <description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;I am using the below code for SMS receiving in 60 series 3rd edition and using carbide.c++ but i got a error for declaring object; &lt;/p&gt;

&lt;p&gt;void CinboxreadAppUi::ConstructL()&lt;br /&gt;
{&lt;/p&gt;

&lt;p&gt;iSmsreceiver = CSMSReceiver::NewL(&lt;span style=&quot;font-weight:bold&quot;&gt;iObserver&lt;/span&gt;);&lt;/p&gt;

&lt;p&gt;}&lt;br /&gt;
where i declare the below code in appui.h file&lt;/p&gt;

&lt;p&gt;class CSMSReceiver;&lt;br /&gt;
class MSMSRecCallBack;&lt;/p&gt;

&lt;p&gt;CSMSReceiver*      iSmsreceiver;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/sms-reading&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/sms-reading#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Mon, 03 Dec 2007 17:06:43 +0100</pubDate>
 <dc:creator>sanjay.singh</dc:creator>
 <guid isPermaLink="false">19724 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
