<div dir="ltr"><div><div>I got it..<br></div>I used Dynamic cast and it worked fine<br></div>Thank-you <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 28, 2016 at 4:54 PM, Monika Dangi <span dir="ltr"><<a href="mailto:monikabaraut@gmail.com" target="_blank">monikabaraut@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,<br></div>I wrote my own producer App, MyApp. then i installed it on a node like:<br><br clear="all"><div><div> ndn::AppHelper appHelper ("MyApp");<br>  ApplicationContainer app = appHelper.Install (mobileNodes);<br></div><div>now i want to use pointer to this app and the object of this MyApp.<br></div><div>i used method <br>Ptr<Application> ap_ptr =app.Get(0);<br></div><div>but when i use the pointer like<br></div><div>ap_ptr->myfunction(); <br></div><div>there is an error that Application has no function called myfunction.<br></div><div>i derived MyApp from Application and added ane more function myfunction.<br></div><div>now i want to pass the pointer of MyApp so that i can use myfunction in other function.<br></div><div>but all i can get the pointer to Application which doesnt have myfunction.<br></div><div>what should i do?<br></div><div>Also how to get object of MyApp Application. or do i have to now access this application via node only??<br></div><div>can anybody guide me?? just a little hint.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- <br><div><div dir="ltr"><div><div>Monika<br></div>MTech CSE<br></div>IIT Roorkee<br></div></div>
</div></font></span></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Monika<br></div>MTech CSE<br></div>IIT Roorkee<br></div></div>
</div>