Click here to Skip to main content
15,860,972 members
Articles / Desktop Programming / MFC

Resource ID Organiser Add-In for Visual C++ 5.0/6.0/.NET

Rate me:
Please Sign up or sign in to vote.
4.98/5 (71 votes)
10 Jan 2005CPOL25 min read 527.5K   12.1K   201  
An application/add-in to organise and renumber resource symbol IDs
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.K.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "1 TYPELIB ""ResOrgNETAddInToolWindows.tlb""\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,6,1,0
 PRODUCTVERSION 1,6,0,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x2L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "080904b0"
        BEGIN
            VALUE "CompanyName", "Riverblade Limited - http://www.riverblade.co.uk"
            VALUE "FileDescription", "Resource ID Organiser Add-In for Visual C++ .NET"
            VALUE "FileVersion", "1.6.1"
            VALUE "InternalName", "ResOrgNETAddInToolWindows.ocx"
            VALUE "LegalCopyright", "Copyright � 2000-2005 Anna-Jayne Metcalfe and Riverblade Limited. All rights reserved (Portions Copyright � 1999 CodeJock.com and Copyright � 1998-1999 Kirk W. Stowell)."
            VALUE "OriginalFilename", "ResOrgNETAddInToolWindows.ocx"
            VALUE "ProductName", "Resource ID Organiser"
            VALUE "ProductVersion", "1.6"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x809, 1200
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_TOOLWIN_EDIT        ICON                    "Res\\Edit.ico"
IDI_TOOLWIN_PROPERTIES  ICON                    "Res\\Properties.ico"
IDI_TOOLWIN_RENUMBER    ICON                    "Res\\Renumber.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_TOOLWIN             BITMAP                  "Res\\ResOrgNETAddInToolWindowsCtrl.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_TOOLWIN_FORM DIALOGEX 0, 0, 221, 247
STYLE DS_SETFONT | WS_CHILD
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
    LTEXT           "Resource Symbol File:",IDC_STATIC,5,5,71,8
    COMBOBOX        IDC_TOOLWIN_SYM_FILE,5,16,100,87,CBS_DROPDOWNLIST | 
                    CBS_SORT | WS_VSCROLL | WS_TABSTOP
    LTEXT           "Resource / Control IDs:",
                    IDC_TOOLWIN_SYM_LOW_RANGE_CAPTION,10,60,120,15,0,
                    WS_EX_TRANSPARENT
    LTEXT           "<value>",IDC_TOOLWIN_SYM_LOW_RANGE,140,60,70,15,0,
                    WS_EX_TRANSPARENT
    LTEXT           "Command IDs:",IDC_TOOLWIN_SYM_HIGH_RANGE_CAPTION,10,75,
                    120,15,0,WS_EX_TRANSPARENT
    LTEXT           "<value>",IDC_TOOLWIN_SYM_HIGH_RANGE,140,75,70,15,0,
                    WS_EX_TRANSPARENT
    LTEXT           "Conflicting Symbol IDs:",
                    IDC_TOOLWIN_SYM_CONFLICTS_CAPTION,10,105,120,15,0,
                    WS_EX_TRANSPARENT
    LTEXT           "<value>",IDC_TOOLWIN_SYM_CONFLICTS,140,105,70,15,0,
                    WS_EX_TRANSPARENT
    PUSHBUTTON      "&Refresh",IDC_TOOLWIN_REFRESH,131,43,45,14,NOT 
                    WS_VISIBLE
    PUSHBUTTON      "",IDC_TOOLWIN_EDIT,122,15,16,16
    PUSHBUTTON      "",IDC_TOOLWIN_RENUMBER,139,15,16,16
    PUSHBUTTON      "",IDC_TOOLWIN_PROPERTIES,105,15,16,16
    ICON            "",IDC_TOOLWIN_WARNING_ICON,12,137,20,20,NOT WS_VISIBLE
    LTEXT           "Static",IDC_TOOLWIN_WARNING_MSG,39,132,140,90,0,
                    WS_EX_TRANSPARENT
    CONTROL         "",IDC_TOOLWIN_DIVIDER,"Static",SS_ETCHEDHORZ,0,40,219,1
    LTEXT           "Statistics:",IDC_STATIC,5,45,31,8
    LTEXT           "<value>",IDC_TOOLWIN_SYM_OUT_OF_RANGE,140,90,70,15,0,
                    WS_EX_TRANSPARENT
    LTEXT           "Out of Range Symbol IDs:",
                    IDC_TOOLWIN_SYM_OUT_OF_RANGE_CAPTION,10,90,120,15,0,
                    WS_EX_TRANSPARENT
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_TOOLWIN_FORM, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 214
        TOPMARGIN, 7
        BOTTOMMARGIN, 240
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDS_TOOLWIN             "ResOrgNETAddInToolWindows Control"
    IDS_TOOLWIN_EDIT        "Edit"
    IDS_TOOLWIN_ERR_CLOSING_FILE "Error closing file\n\nDetails: %s\n"
    IDS_TOOLWIN_PROPERTIES  "Properties"
    IDS_TOOLWIN_RENUMBER    "Renumber"
    IDS_TOOLWIN_SYM_CONFLICTS_CAPTION "Conflicting Symbol IDs:"
    IDS_TOOLWIN_SYM_RANGE_NONE "None"
    IDS_TOOLWIN_WARN_VALUE_CONFLICT 
                            "This resource symbol file contains symbols with the same value, which may cause undesirable behaviour at run-time.<br><br><b>You may wish to consider renumbering the symbols in this file to eliminate the conflicts.</b>"
    IDP_TOOLWIN_ERR_FILE_ATTRIBUTES 
                            "Unable to change file attributes. The changes cannot be saved"
    IDP_TOOLWIN_ERR_SAVE_FILE 
                            "The resource symbol file could not be saved\n\nDetails: %s\n"
END

STRINGTABLE 
BEGIN
    AFX_IDS_APP_TITLE       "ResOrg.NET"
END

STRINGTABLE 
BEGIN
    IDP_TOOLWIN_WARN_NEXT_SYM_VALUES 
                            "One of more of the <font color=""blue"">Next Symbol</font> values of this file is in use by a symbol, which will cause resource conflicts if new symbols are added in the Resource Editor"
    IDS_TOOLWIN_SYM_OUT_OF_RANGE_CAPTION "Out of Range Symbol IDs:"
    IDS_TOOLWIN_WARN_VALUE_OUT_OF_RANGE 
                            "This resource symbol file contains symbols with values which are outside their expected range, which may cause undesirable behaviour at run-time.<br><br><b>You may wish to consider renumbering the symbols in this file to correct this.</b>"
END

#endif    // English (U.K.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
1 TYPELIB "ResOrgNETAddInToolWindows.tlb"

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

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
Founder Riverblade Limited
United Kingdom United Kingdom
I haven't always written software for a living. When I graduated from Surrey University in 1989, it was with an Electronic Engineering degree, but unfortunately that never really gave me the opportunity to do anything particularly interesting (with the possible exception of designing Darth Vader's Codpiece * for the UK Army in 1990).
    * Also known as the Standard Army Bootswitch. But that's another story...
Since the opportunity arose to lead a software team developing C++ software for Avionic Test Systems in 1996, I've not looked back. More recently I've been involved in the development of subsea acoustic navigation systems, digital TV broadcast systems, port security/tracking systems, and most recently software development tools with my own company, Riverblade Ltd.

One of my personal specialities is IDE plug-in development. ResOrg was my first attempt at a plug-in, but my day to day work is with Visual Lint, an interactive code analysis tool environment with works within the Visual Studio and Eclipse IDEs or on build servers.

I love lots of things, but particularly music, photography and anything connected with history or engineering. I despise ignorant, intolerant and obstructive people - and it shows...I can be a bolshy cow if you wind me up the wrong way...Laugh | :laugh:

I'm currently based 15 minutes walk from the beach in Bournemouth on the south coast of England. Since I moved here I've grown to love the place - even if it is full of grockles in Summer!

Comments and Discussions