Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to use CXTPPropExchangeXMLNode
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to use CXTPPropExchangeXMLNode

 Post Reply Post Reply
Author
Message
czlai View Drop Down
Groupie
Groupie
Avatar

Joined: 18 December 2006
Location: Taiwan
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote czlai Quote  Post ReplyReply Direct Link To This Post Topic: How to use CXTPPropExchangeXMLNode
    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 ?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 20 September 2007 at 3:25am

Hello,

Call AfxOleInit();
in App::InitInstance().
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
czlai View Drop Down
Groupie
Groupie
Avatar

Joined: 18 December 2006
Location: Taiwan
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote czlai Quote  Post ReplyReply Direct Link To This Post Posted: 20 September 2007 at 3:52am

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

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 21 September 2007 at 1:06am
ok :)
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.031 seconds.