![]() |
How to use CXTPPropExchangeXMLNode |
Post Reply
|
| Author | |
czlai
Groupie
Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Topic: How to use CXTPPropExchangeXMLNodePosted: 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 ?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 September 2007 at 3:25am |
|
Hello, Call AfxOleInit();
in App::InitInstance().
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
czlai
Groupie
Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 September 2007 at 3:52am |
|
Problem resolved. The Section string can't includ spaces. the sample above works... sorry |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 September 2007 at 1:06am |
|
ok :)
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |