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

Several classes for exception handling

Rate me:
Please Sign up or sign in to vote.
4.92/5 (27 votes)
19 Jan 20024 min read 286.8K   4.9K   125  
C++ wrappers for stack trace, unhandled exception and win32 structured exceptions
// 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__F04C790C_B35D_4748_8C3C_E6CD33C2DEF0__INCLUDED_)
#define AFX_STDAFX_H__F04C790C_B35D_4748_8C3C_E6CD33C2DEF0__INCLUDED_

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

#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN	

#include <crtdbg.h>
#include "kbase.h"
namespace kb = kbase_2001;

#include <eh.h>

#pragma warning(push, 3) 
#include <iostream>
#include <sstream>
#include <string>
#include <exception>
#pragma warning(pop) 

#include <stdio.h>


// TODO: reference additional headers your program requires here

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

#endif // !defined(AFX_STDAFX_H__F04C790C_B35D_4748_8C3C_E6CD33C2DEF0__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 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


Written By
Web Developer
Russian Federation Russian Federation
I am freelance programmer. About 3 years of experience in C++ and I would rather use ATL, STL, WTL but not MFC Smile | :) . Main backgrounds are Win32 API, COM and Networking. Now I am interested about AI (Neural Network, Fuzzy Logic and GA). Currently based in Vladivostok, Russia.

Comments and Discussions