Print Page | Close Window

CXTPPropExchange Section Name and Property name

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11656
Printed Date: 16 June 2025 at 1:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropExchange Section Name and Property name
Posted By: cpedro
Subject: CXTPPropExchange Section Name and Property name
Date 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 ?

                               */

                }

}




Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net