Click here to Skip to main content
12,999,417 members (51,119 online)
Click here to Skip to main content
Articles » Languages » C++ / CLI » General » Downloads


134 bookmarked
Posted 9 Jun 2003

Enhanced .NET Bootstrap Setup

, 24 Nov 2005
Modified Microsoft Setup program to install required IE6, MSI 2.0 and .NET.
//   Copyright (c) Microsoft Corporation.  All rights reserved.
/// ==========================================================================
// Name    :    CError.h
// Purpose :    simple wrapper class for displaying error msgs

#ifndef ERROR_H
#define ERROR_H

#include <windows.h>
#include <tchar.h>

#define EMPTY_BUFFER { _T( '\0' ) }
#define END_OF_STRING  _T( '\0' )
#define MAX_MSG    4096
#define LENGTH(A) (sizeof(A)/sizeof(A[0]))

// ==========================================================================
// class CError
// Purpose:
//  This class displays (error) messages and holds a return-code
// ==========================================================================
class CError
    // Constructors

    CError( UINT nMsg, 
            UINT nCap = 0, 
            UINT nIcon = MB_OK, 
            int nRetCode = ERROR_SUCCESS, 
            LPCTSTR pszArg = NULL);

    // Operations
    int ShowMessage(); 
    int ShowMessage(LPCTSTR pszMsg, 
                    LPCTSTR pszCaption, 
                    UINT nIcon, 
                    LPCTSTR pszArg );

    int ShowHResultMessage(UINT nMsg, 
                           UINT nCaption, 
                           UINT nIcon, 
                           HRESULT hr, 
                           LPCTSTR pszArg);

    int ShowFormattedMessage(LPCTSTR pszMsg, 
                             LPCTSTR pszCaption, 
                             UINT nIcon, 
                             LPCTSTR pszArg );

    // Data
    int m_nRetCode;

    static TCHAR s_szProductName[MAX_PATH+1];

    LPCTSTR m_pszArg;
    UINT    m_nCaption;
    UINT    m_nMessage;
    UINT    m_nIconType;    
    va_list *m_pArgs; 


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.


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


About the Author

Kevin Moore
Web Developer
United States United States
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170624.1 | Last Updated 24 Nov 2005
Article Copyright 2003 by Kevin Moore
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid