How to Access CStringArray object from one class to other
-
Hi ALL, I am using property page in my project. In Property page class i used pagePAth object of CStringArray class. I store paths in pagePath object. Now I want to retreive paths by using pagePAth object in CMyView class which is derived from CView class. I am unable to acces pahePAth object in CMyView class. Please send me solution if u have. Thanks in Advance am
hi
-
Hi ALL, I am using property page in my project. In Property page class i used pagePAth object of CStringArray class. I store paths in pagePath object. Now I want to retreive paths by using pagePAth object in CMyView class which is derived from CView class. I am unable to acces pahePAth object in CMyView class. Please send me solution if u have. Thanks in Advance am
hi
You may: (1) declare it
public
. (2) make apublic
accessor method to it. (3) change is scope (relocate it and make it available to both classes). (4) ... :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
Hi ALL, I am using property page in my project. In Property page class i used pagePAth object of CStringArray class. I store paths in pagePath object. Now I want to retreive paths by using pagePAth object in CMyView class which is derived from CView class. I am unable to acces pahePAth object in CMyView class. Please send me solution if u have. Thanks in Advance am
hi
Does
CMyView
own (i.e., bring up) the property sheet? If so, makepagePAth
a member ofCMyView
. Then when you construct the property sheet, pass it a pointer topagePAth
."Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi ALL, I am using property page in my project. In Property page class i used pagePAth object of CStringArray class. I store paths in pagePath object. Now I want to retreive paths by using pagePAth object in CMyView class which is derived from CView class. I am unable to acces pahePAth object in CMyView class. Please send me solution if u have. Thanks in Advance am
hi
-
Hi ALL, I am using property page in my project. In Property page class i used pagePAth object of CStringArray class. I store paths in pagePath object. Now I want to retreive paths by using pagePAth object in CMyView class which is derived from CView class. I am unable to acces pahePAth object in CMyView class. Please send me solution if u have. Thanks in Advance am
hi
Atul23 wrote:
I am unable to acces pahePAth object in CMyView class.
What Exactly happens! How do you try to Access it. As a Member Variable?, or how else; What do you get? a Compiler Error or garbage Data? regards :)
Bram van Kampen