Click here to Skip to main content
15,885,216 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 530.5K   12.1K   201  
An application/add-in to organise and renumber resource symbol IDs
/************************************************************************
 *
 *                 Resource ID Organiser Core Library
 *
 * (c) Copyright 2000-2002 by Anna-Jayne Metcalfe (resorg@annasplace.me.uk)
 *                         All rights reserved.
 *
 ************************************************************************
 *                                                                       
 *  Filename    : ResOrgCore_DllDefs.h
 *
 *  Description : ResOrgCore private header file
 *                
 *  Compiler    : Microsoft Visual C++ 6.0, Service Pack 3 or later
 *                Microsoft Visual C++ 7.0
 *                                                                       
 *  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_DllDefs.h $
 *   $Revision: 23 $
 *       $Date: 25/11/02 15:11 $
 *     $Author: Anna $
 *
 *    $History: ResOrgCore_DllDefs.h $
 * 
 * *****************  Version 23  *****************
 * User: Anna         Date: 25/11/02   Time: 15:11
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Changed website address in banner
 * 
 * *****************  Version 22  *****************
 * User: Anna         Date: 22/10/02   Time: 13:24
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Changed name/mail address (at last!)
 * 
 * *****************  Version 21  *****************
 * User: Andy         Date: 10/08/02   Time: 0:14
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * DoVersionExpiryCheck() now takes a pointer to the parent window as an
 * optional parameter
 * 
 * *****************  Version 20  *****************
 * User: Andy         Date: 5/08/02    Time: 13:24
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Moved expiry date definitions out to ResOrgExpiry.h
 * 
 * *****************  Version 19  *****************
 * User: Andy         Date: 21/06/02   Time: 20:19
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Disabled the expiry date in readiness for releasing 1.4.5
 * 
 * *****************  Version 18  *****************
 * User: Andy         Date: 11/06/02   Time: 23:01
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Changed expiry date to 1st August 2002
 * 
 * *****************  Version 17  *****************
 * User: Andy         Date: 11/06/02   Time: 0:31
 * Updated in $/Projects/AddIns/ResOrg/ResOrgCore
 * Allow separate expiry dates for VC5/6 and .NET versions
 * 
 * *****************  Version 16  *****************
 * 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 15  *****************
 * User: Andy         Date: 27/05/02   Time: 17:24
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * 1.  Updated file banner
 * 2.  Set expiry date to 1st July 2002
 * 
 * *****************  Version 14  *****************
 * User: Andy         Date: 21/04/02   Time: 20:44
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Removed the expiry date
 * 
 * *****************  Version 13  *****************
 * User: Andy         Date: 2/06/02    Time: 1:58p
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Changed expiry date to 1st May 2002
 * 
 * *****************  Version 12  *****************
 * User: Andy         Date: 12/30/01   Time: 7:04p
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Changed expiry date to 1st April 2002
 * 
 * *****************  Version 11  *****************
 * User: Andy         Date: 10/31/01   Time: 1:22p
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Pushed expiry date back to 1st Feb 2002
 * 
 * *****************  Version 10  *****************
 * User: Andy         Date: 10/03/01   Time: 12:59p
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Changed expiry date to 1/12/2001
 * 
 * *****************  Version 9  *****************
 * User: Andy         Date: 16/08/01   Time: 7:01
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Set an expiry date of 1st October 2001
 * 
 * *****************  Version 8  *****************
 * User: Andy         Date: 5/06/01    Time: 19:36
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Commented out expiry date for imminent version 1.3 release
 * 
 * *****************  Version 7  *****************
 * User: Andy         Date: 22/05/01   Time: 16:12
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Changed expiry date to 23rd June 2001
 * 
 * *****************  Version 6  *****************
 * User: Andy         Date: 23/04/01   Time: 21:20
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Revised expiry date to 25/5/2001
 * 
 * *****************  Version 5  *****************
 * User: Andy         Date: 21/04/01   Time: 7:25
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Changed expiry date
 * 
 * *****************  Version 4  *****************
 * User: Andy         Date: 5/04/01    Time: 6:10
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added support for version expiry (conditional compilation)
 * 
 * *****************  Version 3  *****************
 * User: Andy         Date: 17/02/01   Time: 6:51
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 * Added declaration for "SymbolTypes" global helper object
 * 
 * *****************  Version 2  *****************
 * User: Andy         Date: 29/11/00   Time: 18:38
 * Updated in $/Projects/AddIns/ResOrg/ResOrgUtils
 *  Added file banners
 *
 * $Nokeywords: $
 *
 ************************************************************************/

// File: ResOrgCore_DllDefs.h

#ifndef	__ResOrgCore_DllDefs_H__
#define	__ResOrgCore_DllDefs_H__

#include "ResOrgExpiry.h"

#ifndef	RESORGCORE_EXT_CLASS
	#ifdef RESORGCORE_BUILD_DLL
		#define	RESORGCORE_EXT_CLASS		AFX_CLASS_EXPORT
		#define	RESORGCORE_EXT_API			AFX_API_EXPORT
		#define	RESORGCORE_EXT_DATA			AFX_DATA_EXPORT
	#else
		#define	RESORGCORE_EXT_CLASS		AFX_CLASS_IMPORT
		#define	RESORGCORE_EXT_API			AFX_API_IMPORT
		#define	RESORGCORE_EXT_DATA			AFX_DATA_IMPORT
	#endif
#endif


#ifdef _RESORG_EXPIRY_DATE
	RESORGCORE_EXT_API CTime		GetVersionExpiryDate(void);
	RESORGCORE_EXT_API BOOL			IsVersionExpired(void);
	RESORGCORE_EXT_API BOOL			DoVersionExpiryCheck(CWnd* pParent = NULL);
#endif


	// Call to initalise the library if using it from a regular DLL
	RESORGCORE_EXT_API	void WINAPI InitResOrgCore(void);


class CResOrgOptions;
class CResourceSymbolTypes;

extern RESORGCORE_EXT_DATA	CResOrgOptions			Options;
extern RESORGCORE_EXT_DATA	CResourceSymbolTypes	SymbolTypes;


#endif	//!__ResOrgCore_DllDefs_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