![]() |
CXTPDockingPaneLayout::LoadFromFile failure |
Post Reply
|
| Author | |
tuno
Newbie
Joined: 08 June 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPDockingPaneLayout::LoadFromFile failurePosted: 08 June 2009 at 3:17pm |
|
I have code that looks like this:
CXTPDockingPaneLayout layoutNormal( &m_paneManager ); BOOL bSuccess = layoutNormal.LoadFromFile( filename, layoutname ); I've used this code with success for quite some time, and when I recently tried to enhance the program to load various layouts from various files, I ran into a situation where a valid file name results in a load failure with the following message in the debugger's output window: Warning: CXTPPropExchangeXMLNode::LoadFromString failed. ParseError.Reason = Only one top level element is allowed in an XML document. The file being loaded is the same file I've already loaded successfully many times and has only one top level node, so I'm puzzled about the "only one top level element ..." message. Help ... ? -ted in AZ |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 June 2009 at 2:04am |
|
Hi,
Send to support@codejock.com this XML file that generates such error.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
tuno
Newbie
Joined: 08 June 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 June 2009 at 8:34am |
|
I cannot -- the code is in a "secure environment".
The XML file is one of the ones created by the SaveToFile() method, without modification. |
|
![]() |
|
tuno
Newbie
Joined: 08 June 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 June 2009 at 8:58am |
|
Oleg I have an update to my question. After fixing a seemingly unrelated problem elsewhere in my code, the LoadFromFile() method now works how I expect it to (!).
But a new problem is that my application's panes are not being restored properly according to the loaded layout -- it does not undock/redock panes according to what's in the layout file. I'm new at using CodeJock so I'm in the process of walking through our code in more detail (I'm the maintainer, not the author), but if you happen to have any quick ideas, I would be most thankful! -ted |
|
![]() |
|
kstowell
Admin Group
Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 June 2009 at 1:22pm |
|
Please submit your request to support@codejock.com so we can verify your product license, thanks!
|
|
|
Kirk Stowell, President and CEO
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 |