Click here to Skip to main content
12,623,744 members (28,557 online)
Click here to Skip to main content

Stats

183.6K views
5K downloads
114 bookmarked
Posted

A File Checksum Shell Menu Extension DLL

, 23 May 2008 LGPL3
Create a File Checksum Shell Menu Extension using ATL and Crypto++
CtxCreateHash
CtxCreateHash
CreateHash.rgs
CtxCreateHash.def
CtxCreateHash.rgs
CtxCreateHash.vcproj.8.00.old
CtxCreateHashps.def
CtxCreateHashPS.vcproj.8.00.old
CtxCreateHash.sln.old
CreateHash.rgs
CtxCreateHash.aps
CtxCreateHash.def
CtxCreateHash.rgs
CtxCreateHashps.def
CtxCreateHash.dll
CtxVerifyHash
CtxVerifyHash
CtxVerifyHash.def
CtxVerifyHash.rgs
CtxVerifyHash.vcproj.8.00.old
CtxVerifyHashps.def
CtxVerifyHashPS.vcproj.8.00.old
VerifyHash.rgs
CtxVerifyHash.sln.old
CtxVerifyHash.aps
CtxVerifyHash.def
CtxVerifyHash.rgs
CtxVerifyHashps.def
VerifyHash.rgs
CtxVerifyHash.dll
Sample 1
Test 1.dsp
Test 1.dsw
Sample 2
Test 2.dsp
Test 2.dsw
Sample 3
Test 3.dsp
Test 3.dsw
Sample 4
Test 4.dsp
Test 4.dsw
Sample 5
CtxTest.def
CtxTest.dsp
CtxTest.dsw
CtxTestps.def
CtxTestps.mk
MenuItem.rgs
#ifndef __CRYPTLIB_LIBRARY_INCLUDE__
#define __CRYPTLIB_LIBRARY_INCLUDE__

//
// This file includes the proper Crypto++ library based on
// linking against the C Runtime library. Note that
// Wei's distribution (http://www.cryptopp.com/) only
// includes a statically linked version (/MT and /MTd)
// of cryptlib. Fetch the modifed project and solution file.
// Then, unpack over top of Crypto++. See 'Alternate Configuration'
// http://www.codeproject.com/KB/tips/CryptoPPIntegration.aspx
//
// If IntelliSense or the IDE's colorizer get out of
// syncor you experiences lots of LNK2001 and LNK2019
// errors, Clean the project then perform a Build. This
// is similar to confusing the IDE when switching project
// settings (resulting in precompiled header confusion).
//
// Finally, this means nothing to a Crypto++ Dll project.
// This is for linking to the cryptlib static library only.
//
// For preprocessor define _DLL, see the following.
// * http://msdn.microsoft.com/en-us/library/b0084kay(VS.80).aspx
// * http://support.microsoft.com/kb/65472
//

// Crypto++ Library
#if defined(_DLL) && defined(_DEBUG)
#  pragma comment ( lib, "cryptlibd.dynamic.lib" )
#  pragma message("Crypto++ Library Configuration: Debug build using dynamic CRT linking.")

#elif defined(_DLL) && !defined(_DEBUG)
#  pragma comment ( lib, "cryptlib.dynamic.lib" )
#  pragma message("Crypto++ Library Configuration: Release build using dynamic CRT linking.")

#elif !defined(_DLL) && defined(_DEBUG)
#  pragma comment ( lib, "cryptlibd.static.lib" )
#  pragma message("Crypto++ Library Configuration: Debug build using static CRT linking.")

#elif !defined(_DLL) && !defined(_DEBUG)
#  pragma comment ( lib, "cryptlib.static.lib" )
#  pragma message("Crypto++ Library Configuration: Release build using static CRT linking.")

#else
#  error "Crypto++ library include panic..."

#endif

#endif // __CRYPTLIB_LIBRARY_INCLUDE__

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)

Share

About the Author

Jeffrey Walton
Systems / Hardware Administrator
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.161128.1 | Last Updated 24 May 2008
Article Copyright 2006 by Jeffrey Walton
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid