<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.<br></div><div><br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Monika<br></div>MTech CSE<br></div>IIT Roorkee<br></div></div>
</div></div></div>