Click here to Skip to main content
15,894,907 members
Articles / Desktop Programming / MFC

Auto Windows Resource (*.rc) version Editor

Rate me:
Please Sign up or sign in to vote.
4.33/5 (13 votes)
23 Jun 20033 min read 124.1K   2.2K   48  
This freeware allows to edit a Windows Resources File (*.rc) and to produce a file named 'version.h' containing several string constants (#define). It can also synchronize a RC file and version.h with the Classbuilder Master Header File.
// rcversion.h : main header file for the RCVERSION application
//

#if !defined(AFX_RCVERSION_H__E3C2FDA4_4847_4E1B_92BA_23C8F6857B21__INCLUDED_)
#define AFX_RCVERSION_H__E3C2FDA4_4847_4E1B_92BA_23C8F6857B21__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif


// VERSION INFO
#define RCVERSION_DATE 20030214
#define RCVERSION_TIME 030257
#define RCVERSION_VERSION 200



#include "resource.h"		// main symbols

extern bool g_bQuiet;

/////////////////////////////////////////////////////////////////////////////
// CRcversionApp:
// See rcversion.cpp for the implementation of this class
//

class CRcversionApp : public CWinApp
{
public:
	CRcversionApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRcversionApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CRcversionApp)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
	bool ProcessCommandLine(int argc, char** argv);
	
};


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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RCVERSION_H__E3C2FDA4_4847_4E1B_92BA_23C8F6857B21__INCLUDED_)

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
France France
I started programming when I was 12 years old. Since I learned some computer languages (C/C++, Perl, PHP, ASM(Z80, 68000, x86), UML ,SQL,...), some API (FLTK, QT, wxWindows, Win32, Direct3D, OpenGL and now MFC...).
Next, I worked as Web Programmer, as Network & Systems Admin (Scientific Calculators, Virtual Reality System, Solaris, SGI, W9X/NT/2K/XP,....).
Now I'm Computer Consultant from Network & Systems Administration and specific developments (PHP/MYSQL, Perl, C/C++/MFC,)

Comments and Discussions