#386 Write version and configuration info

closed-accepted
Kimmo Varis
None
5
2003-11-04
2003-10-27
Kimmo Varis
No

RFE #810515 Output WinMerge version and current settings.

First step. Adds new item "Configuration..." to
Help-menu. When user selects it, writes WinMerge.txt to
temp path containing version info etc.

Currently writes WinMerge version, comctl.dll version
and some compare options.

So, what else others want there?

Discussion

  • Kimmo Varis
    Kimmo Varis
    2003-10-27

    Original and changed files

     
    Attachments
  • Kimmo Varis
    Kimmo Varis
    2003-10-27

    uUpdated patch

     
    Attachments
  • Kimmo Varis
    Kimmo Varis
    2003-10-27

    Logged In: YES
    user_id=631874

    Attaching updated patch. More options to write.

    Does anybody have a function to parse Windows version info?
    I mean that verinfo struct to something like "Windows 2000
    Service Pack 3".

     
  • ganier
    ganier
    2003-10-30

    Logged In: YES
    user_id=804270

    That's a good idea.
    May you write also debug (if _DEBUG defined) or release
    build ?
    And add a messagebox to display some info ("join this when
    reporting a bug...") and the path of the saved file.

     
  • Kimmo Varis
    Kimmo Varis
    2003-10-30

    Updated patch

     
    Attachments
  • Kimmo Varis
    Kimmo Varis
    2003-10-30

    Logged In: YES
    user_id=631874

    > May you write also debug..
    Good idea, done.

    I'll open file to external editor (notepad by default), so
    I'm not sure we need messagebox too. That file is easy way
    to see important settings without reporting bug, so that
    messagebox propably is just annoyance for users. I added
    note to begin of file for adding file's data or attaching
    the file when reporting bugs.

    Attaching updated patch merged to current CVS.

     
  • ganier
    ganier
    2003-10-30

    Logged In: YES
    user_id=804270

    BTW, for Windows version, I used this code some time ago :
    : "http://www-tcsn.experts-
    exchange.com/Programming/Programming_Platforms/Win_Prog/
    Q_20761288.html"

     
  • Kimmo Varis
    Kimmo Varis
    2003-10-30

    Logged In: YES
    user_id=631874

    Thanks! I'll add that function to my patch so we see user's
    OS too.

     
  • Kimmo Varis
    Kimmo Varis
    2003-11-03

    Logged In: YES
    user_id=631874

    Attaching new patch. I created new class (CConfigLog) to
    writing config information to file. Also, Windows version
    info is not printed.

    I'd like to apply this tomorrow.

     
  • Kimmo Varis
    Kimmo Varis
    2003-11-03

    Updated patch

     
    Attachments
  • ganier
    ganier
    2003-11-03

    Logged In: YES
    user_id=804270

    I will look at it this evening (but probably it will be OK for me).
    > Also, Windows version info is not printed.
    is now printed ? (I hope so, just tell if you finally didn't want
    to include it).

     
  • Kimmo Varis
    Kimmo Varis
    2003-11-03

    Logged In: YES
    user_id=631874

    Ugh. Its a typo, Windows version IS printed. Thanks for a
    pointer to code. :)

    I forgot to mention I added couple of new structs to
    CCVersionLog.h for WinMerge options. I think we should later
    convert other WinMerge code to use structs for options
    (maybe those I now added..).

     
  • ganier
    ganier
    2003-11-03

    Logged In: YES
    user_id=804270

    That is really fine.
    The sort of thing we should do at the beginning of any
    project.

     
  • Perry
    Perry
    2003-11-04

    Logged In: YES
    user_id=60964

    I've not seen this, so you may have done this:

    Unicode or Ansi build (or this is covered if you write the
    executable name, WinMerge.exe or WinMergeU.exe).

     
  • Kimmo Varis
    Kimmo Varis
    2003-11-04

    Logged In: YES
    user_id=631874

    I'm not writing real executable name. So I added new line to
    log: "Build config" and that prints some of flags used,
    _DEBUG, NDEBUG, UNICODE & _UNICODE.

    I'll apply this to CVS shortly.

     
  • Kimmo Varis
    Kimmo Varis
    2003-11-04

    • assigned_to: nobody --> kimmov
    • status: open --> closed-accepted
     
  • Kimmo Varis
    Kimmo Varis
    2003-11-04

    Logged In: YES
    user_id=631874

    Applied to 2.1 CVS. Closing.

    Checking in ConfigLog.cpp;
    /cvsroot/winmerge/WinMerge/ConfigLog.cpp,v <-- ConfigLog.cpp
    initial revision: 1.1
    done
    RCS file: /cvsroot/winmerge/WinMerge/ConfigLog.h,v
    done
    Checking in ConfigLog.h;
    /cvsroot/winmerge/WinMerge/ConfigLog.h,v <-- ConfigLog.h
    initial revision: 1.1
    done
    Checking in MainFrm.cpp;
    /cvsroot/winmerge/WinMerge/MainFrm.cpp,v <-- MainFrm.cpp
    new revision: 1.114; previous revision: 1.113
    done
    Checking in MainFrm.h;
    /cvsroot/winmerge/WinMerge/MainFrm.h,v <-- MainFrm.h
    new revision: 1.50; previous revision: 1.49
    done
    Checking in Merge.dsp;
    /cvsroot/winmerge/WinMerge/Merge.dsp,v <-- Merge.dsp
    new revision: 1.45; previous revision: 1.44
    done
    Checking in Merge.rc;
    /cvsroot/winmerge/WinMerge/Merge.rc,v <-- Merge.rc
    new revision: 1.95; previous revision: 1.94
    done
    Checking in readme.txt;
    /cvsroot/winmerge/WinMerge/readme.txt,v <-- readme.txt
    new revision: 1.541; previous revision: 1.540
    done
    Checking in resource.h;
    /cvsroot/winmerge/WinMerge/resource.h,v <-- resource.h
    new revision: 1.65; previous revision: 1.64
    done