Click here to Skip to main content
12,505,335 members (63,826 online)
Click here to Skip to main content

Stats

76.1K views
2.4K downloads
33 bookmarked
Posted

Cyclomatic Complexity Viewer

, 30 Jun 2005
A Cyclomatic complexity viewer application.
Program Files
CCMetricViewer
1033
Resource.dll
CCMetricViewer.dll
C++ Programs
CCMetricViewer
AddIn.def
AddIn.rgs
ccmlogo.bmp
logo.bmp
mlogo.bmp
Resource
ccmlogo.bmp
mlogo.bmp
Microsoft Visual Studio
COMMON
MSDev98
AddIns
CycloComplexViewer.dll
CycloComplexViewer
CycloComplexViewer.clw
CycloComplexViewer.def
CycloComplexViewer.dsp
CycloComplexViewer.dsw
CycloComplexViewer.odl
res
logo.ico
TBarLrge.bmp
TBarMedm.bmp
// stdafx.h : Include-Datei f�r Standard-System-Include-Dateien,
//  oder projektspezifische Include-Dateien, die h�ufig benutzt, aber
//      in unregelm��igen Abst�nden ge�ndert werden.
//

#if !defined(AFX_STDAFX_H__4296170C_1945_11D8_998A_CE80D1071215__INCLUDED_)
#define AFX_STDAFX_H__4296170C_1945_11D8_998A_CE80D1071215__INCLUDED_

#define VC_EXTRALEAN		// Selten benutzte Teile der Windows-Header nicht einbinden

#include <afxwin.h>         // MFC-Kern- und -Standardkomponenten
#include <afxdisp.h>
#include <afxcmn.h>

#include <atlbase.h>
//Sie k�nnen eine Klasse von CComModule ableiten und diese benutzen, um etwas zu �berlagern,
//Sie sollten jedoch den Namen von _Module nicht �ndern
extern CComModule _Module;
#include <atlcom.h>

// Developer Studio Objektmodell
#include <ObjModel\addauto.h>
#include <ObjModel\appdefs.h>
#include <ObjModel\appauto.h>
#include <ObjModel\blddefs.h>
#include <ObjModel\bldauto.h>
#include <ObjModel\textdefs.h>
#include <ObjModel\textauto.h>
#include <ObjModel\dbgdefs.h>
#include <ObjModel\dbgauto.h>

/////////////////////////////////////////////////////////////////////////////
// Testlauf-Unterst�tzung

// Verwenden Sie VERIFY_OK bei allen Aufrufen an Developer Studio-Objekte, 
//  die den Wert S_OK zur�ckgeben sollen.
// In DEBUG-Builds Ihres Add-Ins zeigt VERIFY_OK ein ASSERT-Dialogfeld an,
//  wenn der Ausdruck einen anderen Wert als S_OK f�r HRESULT zur�ckgibt. Gibt HRESULT
//  einen "Erfolgscode" zur�ck, zeigt das Feld ASSERT diesen Wert f�r HRESULT an. Gibt HRESULT 
//  einen "Fehlercode" zur�ck, zeigt das Feld ASSERT diesen Wert f�r HRESULT an sowie die 
//  Zeichenfolge mit der Fehlerbeschreibung, bereitgestellt von dem Objekt, das den Fehler ausgel�st hat.
// In RETAIL-Builds Ihres Add-Ins wertet VERIFY_OK lediglich den Ausdruck aus
//  und ignoriert den zur�ckgegebenen Wert f�r HRESULT.

#ifdef _DEBUG

void GetLastErrorDescription(CComBSTR& bstr);		// In CycloComplexViewer.cpp definiert
#define VERIFY_OK(f) \
	{ \
		HRESULT hr = (f); \
		if (hr != S_OK) \
		{ \
			if (FAILED(hr)) \
			{ \
				CComBSTR bstr; \
				GetLastErrorDescription(bstr); \
				_RPTF2(_CRT_ASSERT, "Object call returned %lx\n\n%S", hr, (BSTR) bstr); \
			} \
			else \
				_RPTF1(_CRT_ASSERT, "Object call returned %lx", hr); \
		} \
	}

#else //_DEBUG

#define VERIFY_OK(f) (f);

#endif //_DEBUG

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ f�gt unmittelbar vor der vorhergehenden Zeile zus�tzliche Deklarationen ein.

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

Share

About the Author

Franz Klein
United Kingdom United Kingdom
I am a qualified Veterinary Surgeon who prefers treating computers with viruses than animals with viruses. I have recently completed a MEng German Informatics degree at the University of Reading with a 2:1. I also have the ISEB Foundation Certificate in Software Testing.

Currently I am umemployed and desparately looking for a job in the IT industry.

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160927.1 | Last Updated 1 Jul 2005
Article Copyright 2005 by Franz Klein
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid