Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 12 Apr 2006 12:24:44 +0200,    group: microsoft.public.win32.programmer.tools        back       


VS_VERSION_INFO and dwFileDate* woes   
About tracking versions of an application: because we do frequent releases 
as part of engineering, I needed to be able to ask users to identify the 
specific release version they are using.

Initially, I settled for a simple C++ preprocessor trick: set the title of 
the application's main window to a string that embedded __DATE__ and 
__TIME__ , macros that the compiler substitutes with respective strings at 
compilation time.

Recently, however, my attention was brought to the VS_VERSION_INFO 
resource, and the fact that Explorer displays the information contained 
therein. So I thought, cool, let's rely on the standard way to track 
application versions.
 [I use VS2005 as my IDE and compiler]

But I was soon disappointed:
 - the dwFileDate* fields of the VS_VERSION_INFO resource are set to 0.
   There seems to be no way to have these fields set correctly.
   I was hoping that the linker would set it to date-time of
   linking, but no luck.
 - Support for updating version numbers nonexistent (or demands special
   "hacks" such as http://support.microsoft.com/kb/q237870/).
    [Xcode for MacOSX has something much better]
 - It is an annoyance that information is duplicated within the
   resource (e.g. version numbers included both in numeric form
   and in string form, both being required according to ms docs).

So I was wondering:
 - Has anyone been successfully using the VS_VERSION_INFO date fields?
   Maybe by using a post-liker processing step to edit the file ?
 - In practice, who is successfully using the VS_VERSION_INFO resource,
   and how do you keep it updated in your release and internal builds ?



Thank you for sharing your experience and for any practical suggestion,
Ivan
-- 
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
date: Wed, 12 Apr 2006 12:24:44 +0200   author:   Ivan Vecerina

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us