Click here to Skip to main content
15,886,055 members
Articles / Desktop Programming / ATL

A File Checksum Shell Menu Extension DLL

Rate me:
Please Sign up or sign in to vote.
4.89/5 (34 votes)
23 May 2008LGPL315 min read 251K   6K   116  
Create a File Checksum Shell Menu Extension using ATL and Crypto++
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__CB86C31C_A351_403C_BB96_778AC0ACA896__INCLUDED_)
#define AFX_STDAFX_H__CB86C31C_A351_403C_BB96_778AC0ACA896__INCLUDED_

#include <windows.h>
#include <tchar.h>      // _T( )

#include <iostream>     // cin, cout, cerr
// #include <sstream>      // new and improved
#include <string>       // string
#include <cctype>       // toupper
#include <algorithm>    // transform

using namespace std;

#ifdef UNICODE
#  define _tcout std::wcout
#  define _tcerr std::wcerr
#  define _tcin  std::wcin
#  define _tclog std::wclog
#else
#  define _tcout std::cout
#  define _tcerr std::cerr
#  define _tcin  std::cin
#  define _tclog std::clog
#endif

#ifdef UNICODE
#  define _tstringbuf     std::wstringbuf
#  define _tistringstream std::wistringstream
#  define _tostringstream std::wostringstream
#else
#  define _tstringbuf     std::stringbuf
#  define _tistringstream std::istringstream
#  define _tostringstream std::ostringstream
#endif

#ifdef UNICODE
#  define _tstring std::wstring
#else
#  define _tstring std::string
#endif

// Crypto++ Library
#ifdef _DEBUG
#  pragma comment ( lib, "cryptlibd" )
#else
#  pragma comment ( lib, "cryptlib" )
#endif

#pragma warning( disable: 4786 )

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

#endif // !defined(AFX_STDAFX_H__CB86C31C_A351_403C_BB96_778AC0ACA896__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 GNU Lesser General Public License (LGPLv3)


Written By
Systems / Hardware Administrator
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions