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 » U++ Library support » U++ Library : Other (not classified elsewhere) » Howto use the Updater
Re: How to use the Updater [message #26655 is a reply to message #26632] Tue, 18 May 2010 09:54 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
Hello Mirek

Thank you for your support.

However I still cannot understand how it works.

Going here: http://www.ultimatepp.org/srcdoc$CtrlLib$Updater$en-us.html , it appears this sample code:

GUI_APP_MAIN
{
    SelfUpdate(); // SelfUpdate updates updater.exe first and then app itself
    Update("cs-cz.scd"); // Update czech spelling checker
    Update("logo.bmp"); // Update company logo to be used in reports


The first problem is that it seems Update() function does not exist.

We could consider that that function is really called UpdateFile(). Version used in example void UpdateFile(const char *filename) not always can be used, as it reads data from an .ini file that is a readable text file.

Unfortunately SelfUpdate() calls UpdateFile("UPDATER.EXE"); and GetIniKey("UPDATE"), so it has the above problem.

In addition "updater.exe" name is hardcoded. It could be better to be changed by the programmer because now it is too clear the purpose of that program Smile .

In summary, in actual implementation, although Update.cpp is in CtrlLib, it seems to require some changes to be adapted to programmer needs. It seems that with a very little bit of programming and documenting effort it would be more usable.



Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UWord bug
Next Topic: PromptOK in a thread. Bug?
Goto Forum:
  


Current Time: Fri Jul 18 15:20:48 CEST 2025

Total time taken to generate the page: 0.03824 seconds