Click here to Skip to main content
15,895,799 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 533.5K   12.1K   201  
An application/add-in to organise and renumber resource symbol IDs
/************************************************************************
 *
 *                 Resource ID Organiser Core Library
 *
 * (c) Copyright 2000-2004 by Anna-Jayne Metcalfe (resorg@annasplace.me.uk)
 *                         All rights reserved.
 *
 ************************************************************************
 *                                                                       
 *  Filename    : ResOrgCore.h
 *
 *  Description : Header file for using the ResOrgCore library
 *                
 *  Compiler    : Microsoft Visual C++ 6.0, Service Pack 3 or later
 *                Microsoft Visual C++ .NET 2003
 *                                                                       
 *  Target                                                               
 *  Environment : Windows 98/NT/2000/XP
 *
 *  NOTE:
 *
 *    This software is provided "as is" free for personal use. All
 *    title and copyrights in and to the software, including but not
 *    limited to any images, text, etc. incorporated into it, are
 *    owned by Anna-Jayne Metcalfe, except where acknowledged otherwise.
 *
 *    Your may freely to use this code in your own products, PROVIDED
 *    this notice is not removed or modified.
 *
 *
 *    Visit http://www.annasplace.me.uk/resorg for latest updates
 *
 ************************************************************************
 *
 *   MODIFICATION HISTORY:
 *
 *           This is a controlled document. See project configuration
 *           control tool for latest version and full version history.
 *
 *    $Archive: /Projects/AddIns/ResOrg/ResOrgCore/ResOrgCore.h $
 *   $Revision: 25 $
 *       $Date: 29/08/04 21:39 $
 *     $Author: Anna $
 *
 *    $History: ResOrgCore.h $
 * 
 * *****************  Version 25  *****************
 * User: Anna         Date: 29/08/04   Time: 21:39
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Moved global functions to ResOrgCore_Globals.h
 * 
 * *****************  Version 24  *****************
 * User: Anna         Date: 21/08/04   Time: 18:59
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * The application now uses CResOrgMDIChildWnd for MDI child frames
 * instead of CChildFrame (which has been deleted)
 * 
 * *****************  Version 23  *****************
 * User: Anna         Date: 4/03/03    Time: 20:50
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Added CResOrgProgressDlg
 * 
 * *****************  Version 22  *****************
 * User: Anna         Date: 30/01/03   Time: 21:03
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Added CResOrgCoreApp
 * 
 * *****************  Version 21  *****************
 * User: Anna         Date: 2/01/03    Time: 0:19
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * 1.  Added CResOrgSymbolsDocMultiFile and
 * CResourceSymbolManagerMultiFile
 * 2.  Removed QHTM (it's just more than I need for ResOrg)
 * 
 * *****************  Version 20  *****************
 * User: Anna         Date: 25/11/02   Time: 15:11
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Changed website address in banner
 * 
 * *****************  Version 19  *****************
 * User: Anna         Date: 22/10/02   Time: 13:24
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Changed name/mail address (at last!)
 * 
 * *****************  Version 18  *****************
 * User: Andy         Date: 2/08/02    Time: 17:02
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * 1.  Changes to the module names of the VS.NET version
 * 2.  Added CVc6AutomationHelper to the VC 5.0/6.0 version
 * 
 * *****************  Version 17  *****************
 * User: Andy         Date: 1/08/02    Time: 16:24
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * 1.  Added the QHTM module
 * 2.  Exported CResourceSymbolFilePropertySheet
 * 
 * *****************  Version 16  *****************
 * User: Andy         Date: 7/06/02    Time: 22:22
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * VC7 builds now generate output filenames distinct from the VC6 version
 * 
 * *****************  Version 15  *****************
 * User: Andy         Date: 7/06/02    Time: 17:04
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Renamed the ResOrgUtils module to ResOrgCore. Updated file banners
 * accordingly
 * 
 * *****************  Version 14  *****************
 * User: Andy         Date: 27/05/02   Time: 17:25
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * 1.  Replaced CResourceSymbolBuffer with CResourceSymbolManager
 * 2.  Update file banner
 * 
 * *****************  Version 13  *****************
 * User: Andy         Date: 15/08/01   Time: 22:01
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Removed unnecessary #include of ReservedSymbolsDlg.h
 * 
 * *****************  Version 12  *****************
 * User: Andy         Date: 2/06/01    Time: 16:49
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added CResOrgMDIFrameWnd
 * 
 * *****************  Version 11  *****************
 * User: Andy         Date: 26/05/01   Time: 15:14
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added Mailing List prompt option
 * 
 * *****************  Version 10  *****************
 * User: Andy         Date: 16/05/01   Time: 20:57
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added new classes
 * 
 * *****************  Version 9  *****************
 * User: Andy         Date: 21/04/01   Time: 7:25
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Exported CResOrgSplashWnd
 * 
 * *****************  Version 8  *****************
 * User: Andy         Date: 5/04/01    Time: 6:10
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added support for version expiry (conditional compilation)
 * 
 * *****************  Version 7  *****************
 * User: Andy         Date: 27/03/01   Time: 15:36
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added #includes for SymbolPropertySheet.h and
 * SymbolPropertiesConflictsPage.h
 * 
 * *****************  Version 6  *****************
 * User: Andy         Date: 2/03/01    Time: 13:12
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added GetSymbolFileName() function [previously in CWorkspaceHelper]
 * 
 * *****************  Version 5  *****************
 * User: Andy         Date: 17/02/01   Time: 6:52
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * New exported classes
 * 
 * *****************  Version 4  *****************
 * User: Andy         Date: 5/12/00    Time: 20:33
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added CResOrgHtmlDoc
 * 
 * *****************  Version 3  *****************
 * User: Andy         Date: 3/12/00    Time: 8:34
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Exported CDSAddInLoader from the DLL
 * 
 * *****************  Version 2  *****************
 * User: Andy         Date: 29/11/00   Time: 18:38
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 *  Added file banners
 *
 * $Nokeywords: $
 *
 ************************************************************************/

#pragma once

#ifdef _UNICODE
	#error Unicode is not yet supported by this library!
#endif

// Make it easier for clients apps to use us by removing the
// need for them to specify our import libraries directly
//
// If this include file is being used to build the library
// itself, we must disable this feature...
#ifndef	__RESORGCORE_BUILD_DLL

	#ifdef LIBNAME
		#undef LIBNAME
	#endif

	#if _MSC_VER >= 1300	// VC 7.0 (.NET)
		#ifdef _UNICODE
			#ifdef _DEBUG
				#define LIBNAME	"ResOrgNETCoreUD.lib"
			#else
				#define LIBNAME	"ResOrgNETCoreU.lib"
			#endif
		#else
			#ifdef _DEBUG
				#define LIBNAME	"ResOrgNETCoreD.lib"
			#else
				#define LIBNAME	"ResOrgNETCore.lib"
			#endif
		#endif
	#else					// VC 5.0/6.0
		#ifdef _UNICODE
			#ifdef _DEBUG
				#define LIBNAME	"ResOrgCoreUD.lib"
			#else
				#define LIBNAME	"ResOrgCoreU.lib"
			#endif
		#else
			#ifdef _DEBUG
				#define LIBNAME	"ResOrgCoreD.lib"
			#else
				#define LIBNAME	"ResOrgCore.lib"
			#endif
		#endif
	#endif

	//#pragma message("Automatically linking with " LIBNAME)
	#pragma comment(lib, LIBNAME)
#endif

#include <afxcmn.h>					// MFC support for Windows Common Controls
#include <afxtempl.h>

#include "..\NGLibrary\NGLibrary.h"

#include "ResOrgCore_Res.h"
#include "ResOrgCore_DllDefs.h"

// Classes
#include "ResOrgOptions.h"
#include "DSAddInLoader.h"
#include "ResOrgVersionCheck.h"
#include "ResourceFileBuffer.h"				// Resource File Buffer class

#include "ResourceSymbolTypes.h"			// Resource Symbol Types class
#include "ResourceSymbol.h"					// Resource Symbol class
#include "ResourceSymbolList.h"				// Resource Symbol List class
#include "ResourceSymbolManager.h"			// Resource Symbol Manager class
#include "ProjectFileBuffer.h"				// Project File (.dsp) Buffer class
#include "WorkspaceFileBuffer.h"			// Workspace File (.dsw) Buffer class
#include "ResourceSymbolManagerMultiFile.h"	// Symbol Manager class for multiple files

// Dialog classes
#include "SymbolPropertySheet.h"			// Resource Symbol Properties
#include "SymbolPropertiesGeneralPage.h"
#include "SymbolPropertiesConflictsPage.h"
#include "ResourceSymbolFilePropertySheet.h"


#include "ResOrgCoreApp.h"
#include "ResOrgAboutBox.h"					// About Box (common to app & add-in)
#include "ResOrgSplashWnd.h"				// Splash screen
#include "ResOrgVersionUpdatedDlg.h"		// "Version Updated" dialog
#include "ResOrgProgressDlg.h"				// Progress dialog

// Document/View classes
#include "ResOrgMDIFrameWnd.h"
#include "ResOrgMDIChildWnd.h"
#include "ResOrgSymbolsDoc.h"
#include "ResOrgSymbolsDocMultiFile.h"
#include "ResOrgSymbolsListCtrl.h"
#include "ResOrgSymbolsListView.h"
#include "ResOrgHtmlDoc.h"

// Symbol Renumbering Wizard
#include "RenumWizard.h"
#include "RenumWizardPage.h"
#include "RenumWizIntroPage.h"
#include "RenumWizWafflePage.h"
#include "RenumWizBaseValuesPage.h"
#include "RenumWizCompletionPage.h"

#define	_LINK_TO_UTB_IN_EXTDLL
#include "OXDllExt.h"
#include "OXTabClientWnd.h"

#if _MSC_VER >= 1300
	#include "Vc7AutomationHelper.h"
#else
	#include "Vc6AutomationHelper.h"
#endif


// Global functions
#include "ResOrgCore_Globals.h"

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