Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Designing Robust Objects with Boost

, 16 Aug 2004
Tutorial on designing classes using Boost libraries
//*******************************************************************
//
// $Workfile: stdafx.h $
//
// $Modtime: 8/15/04 8:34a $
//
// Include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers

// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER				// Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0400		// Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif

#ifndef _WIN32_WINNT		// Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0400	// Change this to the appropriate value to target Windows 2000 or later.
#endif

#ifndef _WIN32_WINDOWS		// Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif

#ifndef _WIN32_IE			// Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0400	// Change this to the appropriate value to target IE 5.0 or later.
#endif

#include <stdio.h>
#include <tchar.h>
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS	// some CString constructors will be explicit

#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers
#endif

#include <afx.h>
#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#if _MSC_VER == 1200		// turn off some STL warnings in VS6
#pragma warning(disable: 4018)	// signed/unsigned mismatch
#pragma warning(disable: 4100)	// unreferenced formal parameter
#pragma warning(disable: 4146)	// unary minus operator applied to unsigned type, result still unsigned
#pragma warning(disable: 4244)	// conversion from 'unsigned int' to 'char', possible loss of data
#pragma warning(disable: 4284)	// return type for
#pragma warning(disable: 4786)	// identifier was truncated to '255' characters in the browser information
#endif

#if _MSC_VER == 1200		// turn off some STL warnings in VS6
#pragma warning(push, 3)
#endif
#include <iostream>
#if _MSC_VER == 1200		// turn off some STL warnings in VS6
#pragma warning(pop)
#endif

// TODO: reference additional headers your program requires here

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

Share

About the Author

Jim D'Agostino
Web Developer
United States United States
Jim has been developing software for over 25 years. He is a consultant specializing in writing software for commercial products. He has developed software for embedded systems, device drivers, and windows applications.

| Advertise | Privacy | Mobile
Web01 | 2.8.140922.1 | Last Updated 17 Aug 2004
Article Copyright 2004 by Jim D'Agostino
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid