BuildCount Add-In | CodeGuru

BuildCount Add-In

Here is an add-in module for Developer Studio which automatically creates and modifies the file "AutoBuildCount.h" that contains a macros with a build count values. The file can be inserted into your current project.  For example, if your project is on build 6, the contents of the file look like this: // 6 #ifndef AUTOBUILDCOUNT_H#define […]

Written By
CodeGuru Staff
CodeGuru Staff
Jan 5, 2000
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Here is an add-in module for Developer Studio which
automatically creates and modifies the file "AutoBuildCount.h" that
contains a macros with a build count values. The file can be inserted into your
current project. 

For example, if your project is on build 6, the contents
of the file look like this:



// 6


#ifndef AUTOBUILDCOUNT_H
#define
AUTOBUILDCOUNT_H
#define BUILDCOUNT_NUM 6
#define BUILDCOUNT_STR "6"
#endif

At the
next build, the content will be updated to:


// 7
#ifndef AUTOBUILDCOUNT_H
#define AUTOBUILDCOUNT_H
#define BUILDCOUNT_NUM 7
#define BUILDCOUNT_STR "7"
#endif

You can use the macros BUILDCOUNT_NUM and/or
BUILDCOUNT_STR in the code to refer to the automatically generated build number.
For example, to use the build number in your about box, you could use the macro
as follows:


#include "AutoBuildCount.h"
//…
CAboutDlg::CAboutDlg()
{
    m_strBuild.Format(_T("Build %d"), BFCBUILDCOUNT_NUM);
}

Installation:



  1. Copy the file BuildCount.dll to a local folder
    (DevStudioSharedIDEAddIns if the preferred folder).
  2. At the Developer Studio, choose Customize from the
    Tools menu.
  3. Select Browse from the Add-ins and Macro Files
    page.
  4. Select ‘Add-ins (.dll)’ from the ‘Files of type’
    combo-box.
  5. Select the BuildCount.dll from its folder and click
    on Open.

Recent Updates/Fixes

1. MSDEV has a failure when exiting.

2. GPF when the file AutoBuildCount.h is read-only.

Download
File – 11.7KB

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.