1/* 2 * Portions Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC") 3 * Portions Copyright (C) 2001 Internet Software Consortium. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 * PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18/* $Id: BINDInstall.cpp,v 1.9 2009/09/29 23:48:04 tbox Exp $ */ 19 20/* 21 * Copyright (c) 1999-2000 by Nortel Networks Corporation 22 * 23 * Permission to use, copy, modify, and distribute this software for any 24 * purpose with or without fee is hereby granted, provided that the above 25 * copyright notice and this permission notice appear in all copies. 26 * 27 * THE SOFTWARE IS PROVIDED "AS IS" AND NORTEL NETWORKS DISCLAIMS 28 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 29 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL NORTEL NETWORKS 30 * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES 31 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 32 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 33 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 34 * SOFTWARE. 35 */ 36 37#include "stdafx.h" 38#include "BINDInstall.h" 39#include "BINDInstallDlg.h" 40 41#ifdef _DEBUG 42#define new DEBUG_NEW 43#undef THIS_FILE 44static char THIS_FILE[] = __FILE__; 45#endif 46 47///////////////////////////////////////////////////////////////////////////// 48// CBINDInstallApp 49 50BEGIN_MESSAGE_MAP(CBINDInstallApp, CWinApp) 51 //{{AFX_MSG_MAP(CBINDInstallApp) 52 // NOTE - the ClassWizard will add and remove mapping macros here. 53 // DO NOT EDIT what you see in these blocks of generated code! 54 //}}AFX_MSG 55 ON_COMMAND(ID_HELP, CWinApp::OnHelp) 56END_MESSAGE_MAP() 57 58///////////////////////////////////////////////////////////////////////////// 59// CBINDInstallApp construction 60 61CBINDInstallApp::CBINDInstallApp() 62{ 63 // TODO: add construction code here, 64 // Place all significant initialization in InitInstance 65} 66 67///////////////////////////////////////////////////////////////////////////// 68// The one and only CBINDInstallApp object 69 70CBINDInstallApp theApp; 71 72///////////////////////////////////////////////////////////////////////////// 73// CBINDInstallApp initialization 74 75BOOL CBINDInstallApp::InitInstance() 76{ 77 // Standard initialization 78 // If you are not using these features and wish to reduce the size 79 // of your final executable, you should remove from the following 80 // the specific initialization routines you do not need. 81#if _MSC_VER < 1300 82#ifdef _AFXDLL 83 Enable3dControls(); // Call this when using MFC in a shared DLL 84#else 85 Enable3dControlsStatic(); // Call this when linking to MFC statically 86#endif 87#endif 88 89 CBINDInstallDlg dlg; 90 m_pMainWnd = &dlg; 91 INT_PTR nResponse = dlg.DoModal(); 92 if (nResponse == IDOK) 93 { 94 // TODO: Place code here to handle when the dialog is 95 // dismissed with OK 96 } 97 else if (nResponse == IDCANCEL) 98 { 99 // TODO: Place code here to handle when the dialog is 100 // dismissed with Cancel 101 } 102 103 // Since the dialog has been closed, return FALSE so that we exit the 104 // application, rather than start the application's message pump. 105 return FALSE; 106} 107