Click here to Skip to main content
15,885,278 members
Articles / Programming Languages / C++

Change File Extension Context Menu

Rate me:
Please Sign up or sign in to vote.
4.63/5 (15 votes)
7 May 2008CPOL5 min read 83.5K   918   29  
An easy and flexible way to change file extensions.
// stdafx.h : include file for standard system include files,
//      or project specific include files that are used frequently,
//      but are changed infrequently
#ifndef AFX_STDAFX_H__CACF0E87_A642_468b_9A39_5018816D7AE6__INCLUDED_
#define AFX_STDAFX_H__CACF0E87_A642_468b_9A39_5018816D7AE6__INCLUDED_

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

#define STRICT
#define VC_EXTRALEAN //necessary
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x501
#endif
#define _ATL_APARTMENT_THREADED

#define ISOLATION_AWARE_ENABLED 1 //XP style aware

#include <atlbase.h>
#include <atlapp.h>
	#if (_WTL_VER < 0x0800)
	#error This project requires Windows Template Library version 8.0 or higher
	#endif
extern CComModule _Module;
#include <atlcom.h>
#include <atlmisc.h>
#include <atlconv.h>
#include <atlddx.h>

#include <shlobj.h>
#include <comdef.h>

#include <atlwin.h>
#include <atlctrls.h>
#include <commctrl.h>
#include <string>
#include <list>
#include <vector>
#include <errno.h>
#include <math.h>
#include <algorithm>

#include "Utils/PathSplitter.h"
#include "Utils/Makross.h"
#include "Utils/BitmapHyperLink.h"

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif//AFX_STDAFX_H__CACF0E87_A642_468b_9A39_5018816D7AE6__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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


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

Comments and Discussions