xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

在VC6.0環(huán)境下,用MFC和mysql數(shù)據(jù)庫實(shí)現(xiàn)培訓(xùn)中心收費(fèi)系統(tǒng)

資源截圖

代碼片段和文件信息

//?ADODatabase.cpp:?implementation?of?the?CADODatabase?class.
//
//////////////////////////////////////////////////////////////////////

#include?“stdafx.h“
#include?“學(xué)生信息管理.h“
#include?“ADODatabase.h“

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

//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////



//默認(rèn)的構(gòu)造函數(shù)
CADODatabase::CADODatabase()
{
????//初始化????
????m_pConnection?=?NULL;
????
}

CADODatabase::~CADODatabase()
{?
DisConnect();????
}


//連接到數(shù)據(jù)庫
//1.連接字符串可以自己構(gòu)造也可以從文件中讀出
BOOL?CADODatabase::Connect(CString?serverNameCString?databaseNameCString?strUserCString?strPassword)
{
????try{?
????????//m_pConnection.CreateInstance(__uuidof(Connection));
m_pConnection.CreateInstance(“ADODB.Connection“);
????????HRESULT?hr;
????????
//自己配置連接字符串????????
//m_pConnection->ConnectionString?=?(_bstr_t)(“PROVIDER=MSDASQL;driver={SQL?Server};server=CCCCCC;uid=sa;pwd=shch;database=易明學(xué)?!埃?
m_pConnection->ConnectionString?=?(_bstr_t)(“Provider=sqloledb.1;Data?Source=“+serverName+“;Database=“+databaseName);
hr=m_pConnection->Open(““_bstr_t(strUser)_bstr_t(strPassword)-1);??
????
????????//進(jìn)行連接
????????//連接失敗
????????if(FAILED(hr))
????????{???
????????????AfxMessageBox(“連接失敗!“);
????????????return?FALSE;
????????}
????}
????catch(_com_error&e)
????{
????????AfxMessageBox(e.Description());
????????return?FALSE;
????}?
????return?TRUE;
}

//斷開連接
void?CADODatabase::DisConnect()
{
????if(m_pConnection->State!=adStateClosed)?
????????m_pConnection->Close();
????m_pConnection?=?NULL;??
}


/**////////////////////////////////////////////////////////////////////////
///記錄集操作
///////////////////////////////////////////////////////////////////////

//默認(rèn)的構(gòu)造函數(shù)
CADORecordset::CADORecordset()
{
????//初始化????
m_set.CreateInstance(“ADODB.Recordset“);????
m_pCommand=NULL;
????m_pConnection=NULL;
}

CADORecordset::~CADORecordset()
{?
????CloseRecordset();
m_set.Release();
}
void?CADORecordset::setConnection(_ConnectionPtr?con)
{
m_pConnection=con;
}
///關(guān)閉結(jié)果集
/////////////////////////////////////////////////////////////////////////////
void?CADORecordset::CloseRecordset()
{
????if(m_set->State!=adStateClosed)
????????m_set->Close();

???/*?if(m_pCommand->State!=adStateClosed)
????????m_pCommand->Release();
????m_pCommand?=?NULL;*/????
}

BOOL?CADORecordset::Select(CString?strSql)
{
????try
????{
if(m_pConnection==NULL)
{
AfxMessageBox(“請(qǐng)先設(shè)置記錄集的數(shù)據(jù)庫連接!“);
return?false;
}
????????m_set->CursorLocation=adUseClient;????//設(shè)置游標(biāo)位置設(shè)置為客戶端形式否則GetRecordCount()返回值不對(duì)
//BSTR?bstrSQL=str.AllocSysString();
????????m_set->Open(_variant_t(strSql)_variant_t((IDispatch?*)m_pConnection)adOpenDynamicadLockOptimisticadCmdText);???
????}
????catch(_com_error&e)
????{??
????????

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件??????12516??2012-08-19?12:09??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ADODatabase.cpp

?????文件???????2103??2012-08-19?12:09??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ADODatabase.h

?????文件??????56636??2012-08-03?16:30??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\cell.cpp

?????文件??????16855??2012-08-03?16:30??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\cell.h

?????文件???????2476??2012-08-21?12:19??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ChangeYueShoufei.cpp

?????文件???????1501??2012-08-21?12:14??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ChangeYueShoufei.h

?????文件??????22501??2012-09-01?12:46??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ClassDengji.cpp

?????文件???????2266??2012-08-31?17:12??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ClassDengji.h

?????文件??????22621??2012-08-25?10:43??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ClassInput.cpp

?????文件???????2474??2012-08-24?17:17??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ClassInput.h

?????文件???????6868??2012-09-01?12:43??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ClassMx.cpp

?????文件???????1419??2012-09-01?12:38??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ClassMx.h

?????文件??????11296??2013-01-08?07:05??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\database.sql

?????文件???????5171??2012-09-01?09:41??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\DengjiAddstu.cpp

?????文件???????1540??2012-08-31?17:25??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\DengjiAddstu.h

?????文件???????6549??2012-08-31?12:37??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\JiafeiDate.cpp

?????文件???????1430??2012-08-31?12:07??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\JiafeiDate.h

?????文件??????10854??2012-08-27?10:24??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\Jiaofei.cpp

?????文件???????1655??2012-08-17?19:21??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\Jiaofei.h

?????文件???????5305??2012-08-31?12:39??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\JiaofeiMx.cpp

?????文件???????1376??2012-08-31?12:29??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\JiaofeiMx.h

?????文件??????17943??2012-08-16?18:54??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\Kebiao.cpp

?????文件???????2317??2012-08-16?18:54??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\Kebiao.h

?????文件???????3763??2012-08-31?16:28??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\MainFrm.cpp

?????文件???????1671??2012-08-31?16:26??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\MainFrm.h

?????文件?????536576??2012-05-29?02:16??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\msado15.dll

?????文件??????90578??2012-05-29?02:16??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\msado15.tlh

?????文件??????76573??2012-05-29?02:16??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\msado15.tli

?????文件???????4385??2012-07-31?17:02??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\ReadMe.txt

?????文件???????1318??2012-08-19?12:31??培訓(xùn)中心學(xué)生收費(fèi)系統(tǒng)\res\bmp00001.bmp

............此處省略33個(gè)文件信息

評(píng)論

共有 條評(píng)論