![]() |
How to use CXTPPropExchangeXMLNode |
Post Reply ![]() |
Author | |
czlai ![]() Groupie ![]() ![]() Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() 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 ?
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello, Call AfxOleInit();
in App::InitInstance().
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
czlai ![]() Groupie ![]() ![]() Joined: 18 December 2006 Location: Taiwan Status: Offline Points: 35 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |