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

📄 salarymanagement.cpp

📁 数据库开发的工资管理系统
💻 CPP
字号:
// SalaryManagement.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "SalaryManagement.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSalaryManagementApp

BEGIN_MESSAGE_MAP(CSalaryManagementApp, CWinApp)
	//{{AFX_MSG_MAP(CSalaryManagementApp)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG
	ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSalaryManagementApp construction

CSalaryManagementApp::CSalaryManagementApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//全局变量

CSalaryManagementApp theApp;

CDepartment A_Department("A部门");  //A部门
CDepartment B_Department("B部门");  //B部门
CDepartment C_Department("C部门");  //C部门
CDepartment NULL_Department("Root");  //Root指向的
CDepartment *pDepartment;  //在程序中使用部门信息的指针
CString Initial;  //得到要操作的部门的首字母

CDataBase database;  //连接到数据库的对象
/////////////////////////////////////////////////////////////////////////////
// CSalaryManagementApp initialization

BOOL CSalaryManagementApp::InitInstance()
{
	AfxOleInit();  //初始化OLE/COM库
	AfxEnableControlContainer();
#ifdef _AFXDLL
	Enable3dControls();			// Call this when using MFC in a shared DLL
#else
	Enable3dControlsStatic();	// Call this when linking to MFC statically
#endif
	///////////////////////////////////////////////////////////////////////
	database.InitConnection();  //连接数据库

	CMainDlg dlg;  //主对话框的对象
	m_pMainWnd = &dlg;  //主窗口指针 指向 主对话框
	dlg.DoModal();  //模式对话框

	return FALSE;
}

⌨️ 快捷键说明

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