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 » Community » Newbie corner » LoadFromFile, StoreToFile and Serialize
Re: LoadFromFile, StoreToFile and Serialize [message #28962 is a reply to message #28959] Wed, 29 September 2010 13:42 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Javier,

You actually have it all correct, there is only mistake in your main. You create temporary instance of the window when calling each function, so it works on that, but it appears like doesn't work because Run() is called on another instance, which did not get the deserialized data.

To fix it, just create a variable for the window. It should look like this:
GUI_APP_MAIN
{
	prueba_crear_proyecto crear_proyecto;
	LoadFromFile(crear_proyecto,ConfigFile());
	crear_proyecto.Run();
	StoreToFile(crear_proyecto,ConfigFile());
}


Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MultiThreads and GLCtrl
Next Topic: Metrowerks Code Warrior
Goto Forum:
  


Current Time: Sun Aug 24 16:41:42 CEST 2025

Total time taken to generate the page: 0.04603 seconds