Click here to Skip to main content
15,897,273 members
Articles / Desktop Programming / ATL

Increment File and Product Version Number - Multiple IDE

Rate me:
Please Sign up or sign in to vote.
4.58/5 (32 votes)
21 Oct 2008CPOL12 min read 294.5K   1.2K   134  
An add-in to automatically increment the FileVersion and ProductVersion fields in your application's resource file. Works in VC6 and VS2005, and probably all versions in between.

/* this ALWAYS GENERATED file contains the IIDs and CLSIDs */

/* link this file in with the server and any clients */


 /* File created by MIDL compiler version 6.00.0366 */
/* at Thu Aug 14 20:14:42 2008
 */
/* Compiler settings for .\IncVersion.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

#pragma warning( disable: 4049 )  /* more than 64k source lines */


#ifdef __cplusplus
extern "C"{
#endif 


#include <rpc.h>
#include <rpcndr.h>

#ifdef _MIDL_USE_GUIDDEF_

#ifndef INITGUID
#define INITGUID
#include <guiddef.h>
#undef INITGUID
#else
#include <guiddef.h>
#endif

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        DEFINE_GUID(name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)

#else // !_MIDL_USE_GUIDDEF_

#ifndef __IID_DEFINED__
#define __IID_DEFINED__

typedef struct _IID
{
    unsigned long x;
    unsigned short s1;
    unsigned short s2;
    unsigned char  c[8];
} IID;

#endif // __IID_DEFINED__

#ifndef CLSID_DEFINED
#define CLSID_DEFINED
typedef IID CLSID;
#endif // CLSID_DEFINED

#define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
        const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}

#endif !_MIDL_USE_GUIDDEF_

MIDL_DEFINE_GUID(IID, LIBID_IncVersionLib,0xd52156f9,0x3d13,0x40c6,0x9d,0x4d,0x24,0xe1,0x88,0x66,0xf7,0x73);


MIDL_DEFINE_GUID(CLSID, CLSID_CoAddIn,0xb69bfd01,0x851a,0x4401,0xbc,0xfd,0x11,0x51,0xcf,0xa5,0xe1,0x08);


MIDL_DEFINE_GUID(CLSID, CLSID_CoDSAddIn,0x05654755,0x8f5c,0x435f,0xa2,0x26,0x8c,0x11,0x9b,0x68,0x7e,0xab);


MIDL_DEFINE_GUID(IID, IID_IDSCommands,0xfa706fa7,0x506c,0x4e96,0x9b,0xe7,0xba,0x83,0xfd,0x29,0x89,0x34);


MIDL_DEFINE_GUID(CLSID, CLSID_CoDSCommands,0x226a69d3,0x6f1a,0x4533,0x87,0x0e,0xb5,0x5b,0x1a,0x87,0x4c,0xec);


MIDL_DEFINE_GUID(CLSID, CLSID_CoDSAppEvents,0x705f31e4,0xea39,0x44f6,0xb3,0x21,0x14,0xc1,0xbd,0x78,0x2d,0xab);


MIDL_DEFINE_GUID(CLSID, CLSID_CoDTEAddIn,0xe4a5d3b0,0x27e5,0x448d,0x9d,0x20,0xb0,0x60,0x60,0xc8,0x0c,0x63);


MIDL_DEFINE_GUID(CLSID, CLSID_CoPropPageCtl,0xf8e9744f,0x84bb,0x428f,0xbd,0x6f,0x1e,0xed,0x32,0x36,0x28,0x49);


MIDL_DEFINE_GUID(CLSID, CLSID_CoPropPageCtlGeneral,0xdd1d9cbb,0xa6f3,0x4fde,0xbb,0x3a,0x5b,0xe0,0x22,0x32,0x13,0xa7);


MIDL_DEFINE_GUID(CLSID, CLSID_CoPropPageCtlCPP,0x4d5dadb6,0xb48b,0x437d,0x80,0xc4,0xd5,0x44,0x66,0x67,0x13,0x19);


MIDL_DEFINE_GUID(CLSID, CLSID_CoPropPageCtlCSharp,0x6b1c40bf,0x5f17,0x46d9,0xbf,0xff,0x8b,0x85,0x2a,0x5e,0x9a,0xdf);

#undef MIDL_DEFINE_GUID

#ifdef __cplusplus
}
#endif



By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
Ok, it's about time I updated this profile. I still live near 'Beastly' Eastleigh in Hampshire, England. However I have recently been granted a permamant migration visa to Australia - so if you're a potential employer from down under and like the look of me, please get in touch.
Still married - just, still with just a son and daughter. But they are now 8 and 7 resp and when together they have the energy of a nuclear bomb.
I worked at Teleca UK for over 8.5 years (but have now moved to TikitTFB) and have done loads of different things. Heavily involved with MFC, SQL, C#, The latest is ASP.NET with C# and Javascript. Moving away from Trolltech Qt3 and 4.
Jordan.

Comments and Discussions