PaneLayout using SaveToFile |
Post Reply |
Author | |
JamesC
Newbie Joined: 03 December 2003 Status: Offline Points: 21 |
Post Options
Thanks(0)
Posted: 22 January 2004 at 3:43pm |
When I call the SaveToFile function on the CXTPDockingPaneLayout, my app blows up. I am not sure what the problem is. In the OnCreate of the MDIClientWnd I call m_pLayout = m_paneManager.CreateLayout(); after I create the Panes that I want. I then try to read the file: if (m_pLayout->LoadFromFile("C:\\MyTest.txt", _T("My Test"))){ m_paneManager.SetLayout(m_pLayout); } this does nothing since the file does not exist yet.... then in the OnDestroy I call the save... m_paneManager.GetLayout(m_pLayout); m_pLayout->SaveToFile("C:\\MyTest.txt", _T("My Test")); delete m_pLayout; and it blows up in the SaveToNode inside SaveToFile.. actual line is line 584 of XTPDockingPaneLayout.cpp ASSERT(xmlElementPtr != 0); I followed the examples and even modified others and tried it there and they work. What am I doing wrong. Thank in advance. Edited by JamesC |
|
JamesC
Newbie Joined: 03 December 2003 Status: Offline Points: 21 |
Post Options
Thanks(0)
|
Ok.. I modified the MDIPane example and discovered that the section name can not have spaces in it. Just incase anyone was wondering. That seemed to fix the problem.
|
|
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 |