Click here to Skip to main content
15,894,825 members
Articles / Desktop Programming / ATL

SppMk - a unit testing and GNU make support add-in for Visual Studio 6.0

Rate me:
Please Sign up or sign in to vote.
5.00/5 (6 votes)
11 Jul 200210 min read 155.8K   1.1K   51  
A DevStudio add-in described provides two interesting IDE integration features: adding a new tab to VC WorkspaceView window and running an arbitrary process under IDE with output sent to "Build" tab of VC Output window.
/////////////////////////////////////////////////////////////////////////////

#include <winver.h>
#include "VersionInfo.h"

#define FILE_DESCRIPTION	 "SppMk Visual Studio Add-In"
#define INTERNAL_NAME		 "SppMk"
#define ORIGINAL_FILENAME	 "SppMk.dll"

VS_VERSION_INFO VERSIONINFO
FILEVERSION 	VI_FILE_VERSION
PRODUCTVERSION  VI_PRODUCT_VERSION

// All the flags that we know about
FILEFLAGSMASK   VS_FF_DEBUG | VS_FF_PATCHED | VS_FF_PRERELEASE | VS_FF_PRIVATEBUILD | VS_FF_SPECIALBUILD 

#ifdef _DEBUG
#define _VI_FLAGS_DEBUG		VS_FF_DEBUG
#else
#define _VI_FLAGS_DEBUG		0
#endif

#ifdef VI_PRIVATE_BUILD
#define _VI_FLAGS_PRIVBLD	VS_FF_PRIVATEBUILD
#else
#define _VI_FLAGS_PRIVBLD	0
#endif

#ifndef VI_FILEOS
#define VI_FILEOS		VOS__WINDOWS32
#endif

#ifndef VI_FILETYPE
#define VI_FILETYPE		VFT_DLL
#endif

#ifndef VI_FILETYPE2
#define VI_FILETYPE2		VFT_UNKNOWN
#endif

FILEFLAGS	_VI_FLAGS_PRIVBLD|_VI_FLAGS_DEBUG
FILEOS 	 	VI_FILEOS
FILETYPE 	VI_FILETYPE
FILESUBTYPE 	VI_FILETYPE2

BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "CompanyName", 	VI_COMPANY_NAME
            VALUE "FileDescription", 	FILE_DESCRIPTION
            VALUE "InternalName", 	INTERNAL_NAME
            VALUE "LegalCopyright", 	VI_LEGAL_COPYRIGHT
            VALUE "OriginalFilename", 	ORIGINAL_FILENAME
            VALUE "ProductName", 	VI_PRODUCT_NAME
            VALUE "FileVersion",	VI_FILE_VERSION_FULL "\0"
            VALUE "ProductVersion",	VI_PRODUCT_VERSION_FULL "\0"
#ifdef VI_PRIVATE_BUILD
            VALUE "PrivateBuild",	VI_PRIVATE_BUILD 
#endif
#ifdef VI_COMMENTS
	    VALUE "Comments",		VI_COMMENTS
#endif
        END
    END
    BLOCK "VarFileInfo"
    BEGIN        
	VALUE "Translation", 0x409, 1200
    END
END

/////////////////////////////////////////////////////////////////////////////

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions