U++ framework
Do not panic. Ask here before giving up.

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: 1796
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 Sep 27 17:56:12 GMT+2 2026

Total time taken to generate the page: 0.12066 seconds