Hi Parvinder,

    root() is a member function of WApplication.
    

    you have declared populate1 as a friend of the class derived from 
WApplication. Hence inside populate1 you need to call root() by,
   x.root() where x is a reference to the WApplication object, passed in as a 
parameter ( line no 182)


   This should make your compile error go away, but I'm not sure about anything 
else (like if this is the best way to achieve what you want).


Bests,
Neil



________________________________
From: PARVINDER RAJPUT <[email protected]>
To: [email protected]
Sent: Tuesday, September 20, 2011 5:29 PM
Subject: [Wt-interest] root()

Hello Everyone
check my application in witty...:-)
http://202.164.53.122/wt/test1.wt

I am facing some problem in root() part
I need your help
i am created friend function.
visit my source code
http://paste.ubuntu.com/693668/

error
/home/rajput/Desktop/website/source/test.h: In function ‘void
populate1(WtApplication&)’:
/home/rajput/Desktop/website/source/test.h:218: error: ‘root’ was not
declared in this scope

please  help me
Thanks in advance
-- 
Parvinder Rajput
website:- www.parvinder.co.in

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to