My predecessor amazed me again. He developed simple rollback operation by saving history to a txt files in application folder named back_1.txt, back_2.txt, etc. Wouldn't be so bad for application used locally, not on share net folder :)

Comments

  1. Igor Schevchenko LOL! You are correct. ;)

    ReplyDelete
  2. Maxim Abramovich You are right, except that developing a product costs more than nothing. For example, if I want to save file I must specify correct path to prevent UAC from disturbing user, right ? I must assume that my application is located in read-only directory and all I want to output must be located somewhere, probably I will ask user to specify where he wants files to be stored (suggesting him default user profile directory and sub-directory for my app files). Does it all cost nothing ? ;)

    ReplyDelete
  3. Maxim Abramovich If I specify ParamStr(0), user knows where the files are located. Same folder as for application executable. No files from other apps. If I specify either "GetHomePath()" or ShGetSpecialFolderXXXX with CSIDL_PERSONAL or another CSIDL, user must search files from my application in the folder where many applications can store files. Once again, methods of selecting location for output files may depend on application.

    ReplyDelete

Post a Comment