Print Page | Close Window

How to use CXTPPropExchangeXMLNode

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=8093
Printed Date: 27 July 2025 at 5:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to use CXTPPropExchangeXMLNode
Posted By: czlai
Subject: How to use CXTPPropExchangeXMLNode
Date Posted: 19 September 2007 at 11:12pm
I wrote ...
   CXTPPropExchangeXMLNode nodeRoot(TRUE, NULL, "Root");
   nodeRoot.SaveToFile(m_strWorkingPath+"Custom.xml", TRUE);
But it crashes at CXTPPropExchangeXMLNode::GetProfileNode()
   m_xmlDocPtr->createElement(CT2BSTR(strSection), &xmlElementPtr);
   ASSERT(xmlElementPtr != 0); /*Assert Failed */
It seems I have to enable something before using CXTPPropExchangeXMLNode ?



Replies:
Posted By: Oleg
Date Posted: 20 September 2007 at 3:25am

Hello,

Call AfxOleInit();
in App::InitInstance().


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: czlai
Date Posted: 20 September 2007 at 3:52am

Problem resolved. The Section string can't includ spaces. the sample above works... sorry



Posted By: Oleg
Date Posted: 21 September 2007 at 1:06am
ok :)

-------------
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