|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Howto use the Updater
|
|
|
|
|
Re: How to use the Updater [message #26664 is a reply to message #26655] |
Tue, 18 May 2010 17:17 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
koldo wrote on Tue, 18 May 2010 03:54 | 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.
|
Ops, sorry. Old docs...
Quote: |
Unfortunately SelfUpdate() calls UpdateFile("UPDATER.EXE"); and GetIniKey("UPDATE"), so it has the above problem.
|
Sure, it has to know where files are placed on LAN, right?
Quote: |
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 .
|
Not sure I am getting this point?
Quote: |
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.
|
I have tried to improve docs a tiny bit.
Mirek
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat May 04 15:52:53 CEST 2024
Total time taken to generate the page: 0.05067 seconds
|
|
|