正常使用的基于MFC的简单图书管理系统
标签:
•
文件类型: .rar
•
文件大小: 4.27MB
•
下载次数: 1
•
简单的基于MFC的图书管理系统,简单的连接数据库,对于MFC初学者来说,是一项宝贵的编程学习资料。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 44368 2012-05-17 23:21 BookBook.aps
文件 2673 2012-05-19 23:17 BookBook.clw
文件 4173 2012-05-17 22:57 BookBook.cpp
文件 4672 2012-05-19 23:21 BookBook.dsp
文件 531 2012-05-17 22:57 BookBook.dsw
文件 1334 2012-05-17 22:57 BookBook.h
文件 140288 2012-05-19 23:21 BookBook.ncb
文件 50688 2012-05-19 23:21 BookBook.opt
文件 1653 2012-05-19 23:05 BookBook.plg
文件 12246 2012-05-17 23:21 BookBook.rc
文件 1702 2012-05-17 22:57 BookBookDoc.cpp
文件 1453 2012-05-17 22:57 BookBookDoc.h
文件 2519 2012-05-17 22:57 BookBookView.cpp
文件 1859 2012-05-17 22:57 BookBookView.h
文件 143360 2012-05-18 23:26 Bookook_db.mdb
文件 3695616 2012-05-19 23:05 BookDebugBook.bsc
文件 131133 2012-05-19 21:29 BookDebugBook.exe
文件 357656 2012-05-19 21:29 BookDebugBook.ilk
文件 22890 2012-05-19 21:29 BookDebugBook.obj
文件 9540656 2012-05-19 21:29 BookDebugBook.pch
文件 615424 2012-05-19 21:29 BookDebugBook.pdb
文件 7512 2012-05-17 23:37 BookDebugBook.res
文件 0 2012-05-19 21:29 BookDebugBook.sbr
文件 14669 2012-05-19 21:29 BookDebugBookDoc.obj
文件 0 2012-05-19 21:29 BookDebugBookDoc.sbr
文件 19565 2012-05-19 21:29 BookDebugBookView.obj
文件 0 2012-05-19 21:29 BookDebugBookView.sbr
文件 0 2012-05-19 23:05 BookDebugDlg_login.sbr
文件 26165 2012-05-19 21:29 BookDebugMainFrm.obj
文件 0 2012-05-19 21:29 BookDebugMainFrm.sbr
............此处省略24个文件信息
// Book.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Book.h“
#include “MainFrm.h“
#include “BookDoc.h“
#include “BookView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBookApp
BEGIN_MESSAGE_MAP(CBookApp CWinApp)
//{{AFX_MSG_MAP(CBookApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CBookApp construction
CBookApp::CBookApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CBookApp object
CBookApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CBookApp initialization
BOOL CBookApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CBookDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CBookView));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
}
/////////////////////////
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 44368 2012-05-17 23:21 BookBook.aps
文件 2673 2012-05-19 23:17 BookBook.clw
文件 4173 2012-05-17 22:57 BookBook.cpp
文件 4672 2012-05-19 23:21 BookBook.dsp
文件 531 2012-05-17 22:57 BookBook.dsw
文件 1334 2012-05-17 22:57 BookBook.h
文件 140288 2012-05-19 23:21 BookBook.ncb
文件 50688 2012-05-19 23:21 BookBook.opt
文件 1653 2012-05-19 23:05 BookBook.plg
文件 12246 2012-05-17 23:21 BookBook.rc
文件 1702 2012-05-17 22:57 BookBookDoc.cpp
文件 1453 2012-05-17 22:57 BookBookDoc.h
文件 2519 2012-05-17 22:57 BookBookView.cpp
文件 1859 2012-05-17 22:57 BookBookView.h
文件 143360 2012-05-18 23:26 Bookook_db.mdb
文件 3695616 2012-05-19 23:05 BookDebugBook.bsc
文件 131133 2012-05-19 21:29 BookDebugBook.exe
文件 357656 2012-05-19 21:29 BookDebugBook.ilk
文件 22890 2012-05-19 21:29 BookDebugBook.obj
文件 9540656 2012-05-19 21:29 BookDebugBook.pch
文件 615424 2012-05-19 21:29 BookDebugBook.pdb
文件 7512 2012-05-17 23:37 BookDebugBook.res
文件 0 2012-05-19 21:29 BookDebugBook.sbr
文件 14669 2012-05-19 21:29 BookDebugBookDoc.obj
文件 0 2012-05-19 21:29 BookDebugBookDoc.sbr
文件 19565 2012-05-19 21:29 BookDebugBookView.obj
文件 0 2012-05-19 21:29 BookDebugBookView.sbr
文件 0 2012-05-19 23:05 BookDebugDlg_login.sbr
文件 26165 2012-05-19 21:29 BookDebugMainFrm.obj
文件 0 2012-05-19 21:29 BookDebugMainFrm.sbr
............此处省略24个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)