Click here to Skip to main content
15,886,362 members
Articles / Desktop Programming / MFC

The Diffraction Grating Calculator

Rate me:
Please Sign up or sign in to vote.
4.40/5 (5 votes)
30 Oct 2010GPL38 min read 41.4K   678   6  
An MFC Windows program related to Concave Diffraction Gratings using VTK libraries.
// LoggerMacro.h: entry point defining all macro's for LOG tracing
//                   if you want to use the logger just include this file
//
//////////////////////////////////////////////////////////////////////

#ifndef LOGGERMACRO_H
#define LOGGERMACRO_H

#if _MSC_VER > 1000
#pragma warning (disable: 4786)
#pragma warning (disable: 4748)
#pragma warning (disable: 4103)
#endif /* _MSC_VER > 1000 */

// Leave here this pre-processor test as it will be done on almost every unit!
#ifdef _WIN32
	#ifndef _MT
		#error _MT not defined! no Multi-Threading safety in CRunTime library
	#endif
#endif

#include "SingleLogger.h"

// Note for the logger to be activated using default INI values:
// just instance the logger at program starts, e.g. place the following in the starting:
// CSingleLogger::GetInstance()

// The Logger is UNICODE aware, please use the _T() macro including strings !!!

#define LTRACE	if (CSingleLogger::IsCSingleLoggerEnabled) CSingleLogger::GetInstance()->Trace

#endif /* ! defined LOGGERMACRO_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 GNU General Public License (GPLv3)


Written By
Software Developer (Senior)
Italy Italy
Senior Software Developer in C/C++ and Oracle.
Ex-physicist holding a Ph.D. on x-ray lasers.

Comments and Discussions