Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Xmlize values
Re: Xmlize values [message #25740 is a reply to message #25729] Wed, 10 March 2010 08:55 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Tue, 09 March 2010 07:40

Finally the problem is with de-xmlizing Value set to some integer value with stored something like String.

#include <Core/Core.h>
using namespace Upp;

struct A
{
	void Xmlize(XmlIO &xml) { xml ("v",v); } //<-- exception on 2nd call

	Value v;
};

CONSOLE_APP_MAIN
{
	A a;
	a.v = "test";
	StoreAsXMLFile(a, "XmlizeTest", "xmlizeTtest");
	a.v = 0;
	LoadFromXMLFile(a, "xmlizeTtest");
}



Thank you, fixed.

Mirek
Previous Topic: Strange Win7 issue with large fonts...
Next Topic: libpng1.4
Goto Forum:
  


Current Time: Sat Apr 27 13:06:01 CEST 2024

Total time taken to generate the page: 0.04648 seconds