資源簡介
MFC連接用ADO技術連接Access,老外的代碼,在網(wǎng)上下的,你們自己品味一下吧

代碼片段和文件信息
//?ADOTest.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ADOTest.h“
#include?“ADOTestDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CADOTestApp
BEGIN_MESSAGE_MAP(CADOTestApp?CWinApp)
//{{AFX_MSG_MAP(CADOTestApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CADOTestApp?construction
CADOTestApp::CADOTestApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CADOTestApp?object
CADOTestApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CADOTestApp?initialization
BOOL?CADOTestApp::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
CADOTestDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2077??2001-03-27?13:17??ADOTest\ADOTest.cpp
?????文件???????4442??2001-05-28?10:51??ADOTest\ADOTest.dsp
?????文件????????539??2001-03-27?13:17??ADOTest\ADOTest.dsw
?????文件???????1335??2001-03-27?13:17??ADOTest\ADOTest.h
?????文件???????6790??2001-05-28?10:02??ADOTest\ADOTest.rc
?????文件??????11168??2001-05-31?10:51??ADOTest\ADOTestDlg.cpp
?????文件???????1473??2001-05-31?10:51??ADOTest\ADOTestDlg.h
?????文件???????1078??2001-03-27?13:17??ADOTest\res\ADOTest.ico
?????文件????????399??2001-03-27?13:17??ADOTest\res\ADOTest.rc2
?????文件???????1005??2001-05-28?10:02??ADOTest\resource.h
?????文件????????209??2001-03-27?13:17??ADOTest\StdAfx.cpp
?????文件???????1126??2001-03-27?13:56??ADOTest\StdAfx.h
?????文件???????1005??2001-05-21?09:59??ADOTest\StoredProcDlg.cpp
?????文件???????1254??2001-05-21?09:59??ADOTest\StoredProcDlg.h
?????文件???????1071??2001-05-28?10:20??ADOTest\UpdateDlg.cpp
?????文件???????1241??2001-05-28?10:20??ADOTest\UpdateDlg.h
?????文件?????159744??2001-05-31?11:34??ADOTestDB.mdb
?????目錄??????????0??2001-06-11?10:21??ADOTest\res
?????目錄??????????0??2001-06-11?10:21??ADOTest
-----------?---------??----------?-----??----
???????????????195956????????????????????19
評論
共有 條評論