软件工程课程设计任务书——图书管理系统(7)
时间:2026-01-17
时间:2026-01-17
软件工程课程设计——
///////////////////////////////////////////////////////////////////////////// // CLibraryApp
BEGIN_MESSAGE_MAP(CLibraryApp, CWinApp) //{{AFX_MSG_MAP(CLibraryApp) 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()
///////////////////////////////////////////////////////////////////////////// // CLibraryApp construction
CLibraryApp::CLibraryApp() { // TODO: add construction code here, // Place all significant initialization in InitInstance }
///////////////////////////////////////////////////////////////////////////// // The one and only CLibraryApp object
CLibraryApp theApp;
///////////////////////////////////////////////////////////////////////////// // CLibraryApp initialization
BOOL CLibraryApp::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. SQLConfigDataSource(NULL,ODBC_ADD_DSN, "Microsoft Access Driver (*.mdb)",
下一篇:第1章 网页制作基础