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   |
|
|
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
|
|
|
|
 |
|
LoadFromFile, StoreToFile and Serialize
By: 281264 on Wed, 29 September 2010 12:39
|
 |
|
Re: LoadFromFile, StoreToFile and Serialize
By: dolik.rce on Wed, 29 September 2010 13:42
|
 |
|
Re: LoadFromFile, StoreToFile and Serialize
By: 281264 on Wed, 29 September 2010 13:59
|
 |
|
Re: LoadFromFile, StoreToFile and Serialize
By: dolik.rce on Wed, 29 September 2010 17:33
|
 |
|
Re: LoadFromFile, StoreToFile and Serialize
By: 281264 on Wed, 29 September 2010 18:07
|
Goto Forum:
Current Time: Mon Jan 19 02:07:11 CET 2026
Total time taken to generate the page: 0.05959 seconds
|