www.pudn.com > src.rar > subresync.cpp


// subresync.cpp : Defines the class behaviors for the application. 
// 
 
#include "stdafx.h" 
#include "subresync.h" 
#include "subresyncDlg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CSubresyncApp 
 
BEGIN_MESSAGE_MAP(CSubresyncApp, CVSApp) 
	//{{AFX_MSG_MAP(CSubresyncApp) 
	//}}AFX_MSG 
	ON_COMMAND(ID_HELP, CVSApp::OnHelp) 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CSubresyncApp construction 
 
CSubresyncApp::CSubresyncApp() 
{ 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// The one and only CSubresyncApp object 
 
CSubresyncApp theApp; 
 
///////////////////////////////////////////////////////////////////////////// 
// CSubresyncApp initialization 
 
BOOL CSubresyncApp::InitInstance() 
{ 
	if(!CVSApp::InitInstance()) 
		return FALSE; 
 
	AfxEnableControlContainer(); 
 
	SetRegistryKey(_T("Gabest")); 
 
	// Standard initialization 
 
	CoInitialize(NULL); 
 
	CCommandLineInfo cmdInfo; 
	ParseCommandLine(cmdInfo); 
 
	CSubresyncDlg dlg(cmdInfo.m_strFileName); 
	m_pMainWnd = &dlg; 
 
	int nResponse = dlg.DoModal(); 
	if (nResponse == IDOK) 
	{ 
	} 
	else if (nResponse == IDCANCEL) 
	{ 
	} 
 
	// Since the dialog has been closed, return FALSE so that we exit the 
	//  application, rather than start the application's message pump. 
	return FALSE; 
} 
 
int CSubresyncApp::ExitInstance() 
{ 
	CoUninitialize(); 
 
	return CVSApp::ExitInstance(); 
}