⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clientrelationship.cpp

📁 关于客户关系管理系统的源码
💻 CPP
字号:
// ClientRelationship.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "ClientRelationship.h"

#include "MainFrm.h"
#include "ClientRelationshipDoc.h"
#include "ClientRelationshipView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CClientRelationshipApp

BEGIN_MESSAGE_MAP(CClientRelationshipApp, CWinApp)
	//{{AFX_MSG_MAP(CClientRelationshipApp)
	ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
	// Standard file based document commands
	ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
	ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
	// Standard print setup command
	ON_COMMAND(ID_FILE_PRINT_SETUP, CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CClientRelationshipApp construction

CClientRelationshipApp::CClientRelationshipApp()
{
	connString=_T("Data Source=ClientRelationShip;UID=sa;PWD=;");
	// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CClientRelationshipApp object

CClientRelationshipApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CClientRelationshipApp initialization

BOOL CClientRelationshipApp::InitInstance()
{
	AfxEnableControlContainer();

	AfxOleInit();
    HRESULT hRes;
	try
	{
        hRes=m_pConn.CreateInstance(_T("ADODB.Connection"));
		m_pConn->ConnectionTimeout = 8;
		hRes=m_pConn->Open(_bstr_t((LPCTSTR) connString),
            _T(""),_T(""),adModeUnknown);
	}
	catch(_com_error e)///

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -