Click here to Skip to main content
13,555,266 members
Click here to Skip to main content


96 bookmarked
Posted 29 Feb 2000

A Utility to Clean Up Compiler Temp Files

, 24 Dec 2002
A shell extension that deletes compiler temp and intermediate files.
// This utility written and copyright by Michael Dunn (mdunn at inreach
// dot com).  You may freely use and redistribute this source code and
// binary as long as this notice is retained.
// Contact me if you have any questions, comments, or bug reports. Get
// the latest updates at
// Revision history:
//  Feb 28, 2000: Version 1.0: First release.
//  June 5, 2000: Version 1.1: Fixed (un)registration so the DLL works
//      on NT/2000.
//  Oct 28, 2001: Version 1.1.1: Added 4 default wildcards, *.ncb, *.aps,
//      *.bsc, *.sbr.

// AddEditPatternDlg.cpp : implementation file

#include "stdafx.h"
#include "resource.h"
#include "AddEditPatternDlg.h"
#include <afxpriv.h>

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;

// CAddEditPatternDlg dialog

CAddEditPatternDlg::CAddEditPatternDlg ( BOOL bAddDlg, CWnd* pParent )
	: CDialog(CAddEditPatternDlg::IDD, pParent)
	m_sPattern = _T("");

    m_bAddDlg = bAddDlg;

void CAddEditPatternDlg::DoDataExchange(CDataExchange* pDX)
	DDX_Text(pDX, IDC_PATTERN, m_sPattern);
	DDV_MaxChars(pDX, m_sPattern, 259);

BEGIN_MESSAGE_MAP(CAddEditPatternDlg, CDialog)

// CAddEditPatternDlg message handlers

BOOL CAddEditPatternDlg::OnInitDialog() 
    if ( m_bAddDlg )
        SetWindowText ( _T("Add Wildcard") );
        SetWindowText ( _T("Edit Wildcard") );

    return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE

void CAddEditPatternDlg::OnKickIdle()
    UpdateDialogControls ( this, FALSE );

void CAddEditPatternDlg::OnUpdateOK ( CCmdUI* pCmdUI )
    pCmdUI->Enable ( GetDlgItem(IDC_PATTERN)->GetWindowTextLength() > 0 );

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

Michael Dunn
Software Developer (Senior) VMware
United States United States
Michael lives in sunny Mountain View, California. He started programming with an Apple //e in 4th grade, graduated from UCLA with a math degree in 1994, and immediately landed a job as a QA engineer at Symantec, working on the Norton AntiVirus team. He pretty much taught himself Windows and MFC programming, and in 1999 he designed and coded a new interface for Norton AntiVirus 2000.
Mike has been a a developer at Napster and at his own lil' startup, Zabersoft, a development company he co-founded with offices in Los Angeles and Odense, Denmark. Mike is now a senior engineer at VMware.

He also enjoys his hobbies of playing pinball, bike riding, photography, and Domion on Friday nights (current favorite combo: Village + double Pirate Ship). He would get his own snooker table too if they weren't so darn big! He is also sad that he's forgotten the languages he's studied: French, Mandarin Chinese, and Japanese.

Mike was a VC MVP from 2005 to 2009.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.180515.1 | Last Updated 25 Dec 2002
Article Copyright 2000 by Michael Dunn
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid