Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropExchange Section Name and Property name
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropExchange Section Name and Property name

 Post Reply Post Reply
Author
Message
cpedro View Drop Down
Newbie
Newbie
Avatar

Joined: 30 July 2008
Location: Portugal
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpedro Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropExchange Section Name and Property name
    Posted: 30 July 2008 at 6:14am

/*

                i intend to read a write data structures using the CXTPPropExchange class,

                for that i planned to use a recursive function that read through the objects

                and retrieved it's children and read it's properties.

 

                i having some trouble reading the data in the CXTPPropExchange objects, despite my

                eforts it seems that i can't read a section name, nor a property name from the object.

 

                could you please confirm that there is a way to retrieve this data from the CXTPPropExchange object.

 

                bellow is a sample of what planned to do.

*/

void read_CXTPPropExchange(CXTPPropExchange* px)

{

 

                CXTPPropExchangeEnumerator* px_enum = px->GetEnumerator(/*?????*/);

/* Do I have to know beforehand  the name of the section i'm looking at? */

                POSITION enum_pos = px_enum->GetPosition();

 

                while (enum_pos)

                {

                               CXTPPropExchange* px_child = px_enum->GetNext(enum_pos);

                               /*

                                               is there a way to get the section name of the px_child ??

                               */

                               read_CXTPPropExchange(px_child);

 

                               /*

                                               is it possible to retrieve not only a property's value but also

                                               it's name, using some option the the PX_ functions ?

                               */

                }

}

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 July 2008 at 7:38am
Hi,
 
Sorry, it was not designed to be used this way. You have to know sections and attibutes names.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.