• 大小: 463KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-13
  • 语言: C/C++
  • 标签: access  ado  vc  mfc  

资源简介

mfc中用ado实现对access数据库的访问

资源截图

代码片段和文件信息

// LuggageManager.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “LuggageManager.h“
#include “LuggageManagerDlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CLuggageManagerApp

BEGIN_MESSAGE_MAP(CLuggageManagerApp CWinApp)
//{{AFX_MSG_MAP(CLuggageManagerApp)
// 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()

/////////////////////////////////////////////////////////////////////////////
// CLuggageManagerApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only CLuggageManagerApp object

CLuggageManagerApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CLuggageManagerApp initialization

BOOL CLuggageManagerApp::InitInstance()
{
AfxOleInit();
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

CLuggageManagerDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    2138171  2008-09-11 12:51  LuggageManager.exe

     文件     147456  2008-09-11 12:53  lm.mdb

     文件     147456  2008-09-11 12:49  LuggageManager\lm.mdb

     文件      36416  2008-09-11 12:51  LuggageManager\LuggageManager.aps

     文件       1789  2008-09-11 12:55  LuggageManager\LuggageManager.clw

     文件       2191  2008-09-11 11:00  LuggageManager\LuggageManager.cpp

     文件       4277  2008-09-11 12:55  LuggageManager\LuggageManager.dsp

     文件        551  2008-09-11 10:14  LuggageManager\LuggageManager.dsw

     文件       1412  2008-09-11 10:14  LuggageManager\LuggageManager.h

     文件     107520  2008-09-11 12:55  LuggageManager\LuggageManager.ncb

     文件      51712  2008-09-11 12:55  LuggageManager\LuggageManager.opt

     文件        870  2008-09-11 12:51  LuggageManager\LuggageManager.plg

     文件       6265  2008-09-11 12:51  LuggageManager\LuggageManager.rc

     文件       8460  2008-09-11 12:49  LuggageManager\LuggageManagerDlg.cpp

     文件       1633  2008-09-11 12:47  LuggageManager\LuggageManagerDlg.h

     文件      90652  2007-08-15 15:02  LuggageManager\msado15.tlh

     文件      76608  2007-08-15 15:02  LuggageManager\msado15.tli

     文件       3723  2008-09-11 10:14  LuggageManager\ReadMe.txt

     文件       1078  2008-09-11 10:14  LuggageManager\res\LuggageManager.ico

     文件        406  2008-09-11 10:14  LuggageManager\res\LuggageManager.rc2

     文件       1014  2008-09-11 12:43  LuggageManager\resource.h

     文件        216  2008-09-11 10:14  LuggageManager\StdAfx.cpp

     文件       1157  2008-09-11 10:25  LuggageManager\StdAfx.h

     目录          0  2008-09-11 10:14  LuggageManager\res

     目录          0  2008-09-11 12:58  LuggageManager

----------- ---------  ---------- -----  ----

              2831033                    25


评论

共有 条评论