91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 15.39MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2023-07-31
  • 語言: C/C++
  • 標簽: mfc??數據庫??

資源簡介

mfc 圖書管理系統 數據庫 SQLServer 源碼 直接可以用的 用VC6.0開發的

資源截圖

代碼片段和文件信息

//?bbb.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“bbb.h“
#include?“bbbDlg.h“
#include?“DlgLogin.h“
#include?“PrintDoc.h“
#include?“PrintFram.h“
#include?“PrintView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CBbbApp

BEGIN_MESSAGE_MAP(CBbbApp?CWinApp)
//{{AFX_MSG_MAP(CBbbApp)



ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
//}}AFX_MSG_MAP

END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CBbbApp?construction

CBbbApp::CBbbApp()
{

}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBbbApp?object

CBbbApp?theApp;

_ConnectionPtr?m_pCon;??//ADO連接對象
_RecordsetPtr?m_pRs;?
_RecordsetPtr?m_pRs1;
_CommandPtr?m_pCom;

BOOL?Flag?=?FALSE;?//登錄標識
CString?userpassword;//記錄當前用戶
CString?strserver;
CString?strdbName;
CString?strUser;
CString?strPassword;

CReport?report;
/////////////////////////////////////////////////////////////////////////////
//?CBbbApp?initialization

BOOL?CBbbApp::InitInstance()
{
AfxOleInit();?
AfxEnableControlContainer();

#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
m_mainfram?=?NULL;
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CPrintDoc)
RUNTIME_CLASS(CPrintFram)???????//?main?SDI?frame?window
RUNTIME_CLASS(CPrintView));
AddDocTemplate(pDocTemplate);
IniAdo();
CDlgLogin?login?;
login.DoModal();
if?(Flag?==true)
{
CBbbDlg?dlg;
m_pMainWnd?=?&dlg;
dlg.DoModal();
}
return?FALSE;
}

CString?CBbbApp::ExtractFilePath(LPTSTR?filename)
{
CString?appname;
appname?=?AfxGetAppName();
appname?=?appname+“.exe“;
CString?temp;
int?pos;
temp?=?filename;
pos?=?temp.Find(appname0);
temp?=?temp.Left(pos);
return?temp;
}

void?CBbbApp::IniAdo()
{
try
{
CString?temp;
char?filepath[MAX_PATH];
GetModuleFileName(NULLfilepathMAX_PATH);

temp?=?theApp.ExtractFilePath(filepath);//獲取可執行文件的路徑

//m_pCon.CreateInstance(“ADODB.Connection“);
CString?strAdoConn;
char?temp1[100];

GetPrivateProfileString(“DatabaseConfig““Server“““temp1100temp+“login.ini“);
strserver?=?(TCHAR?*)temp1;
GetPrivateProfileString(“DatabaseConfig““Database“““temp1100temp+“login.ini“);
strdbName?=?temp1;
GetPrivateProfileString(“DatabaseConfig““User“““temp1100temp+“login.ini“);
strUser?=?temp1;
GetPrivateProfileString(“DatabaseConfig““PWD“““temp1100temp+“login.ini“);
strPassword?=?temp1;
strAdoConn.Format(“driver=

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件????2228224??2014-12-16?15:17??06\Database\BookManage_Data.MDF

?????文件????1835008??2014-12-16?15:17??06\Database\BookManage_Log.LDF

?????文件??????48640??2008-02-28?09:45??06\readme.doc

?????文件????6358760??2014-10-16?17:07??06\源程序\bbb.aps

?????文件??????22792??2014-10-17?09:01??06\源程序\bbb.clw

?????文件???????3668??2008-01-28?08:42??06\源程序\bbb.cpp

?????文件??????11135??2007-12-06?13:29??06\源程序\bbb.dsp

?????文件????????531??2005-12-21?18:46??06\源程序\bbb.dsw

?????文件???????1409??2006-02-08?08:02??06\源程序\bbb.h

?????文件?????328704??2014-10-17?09:01??06\源程序\bbb.ncb

?????文件?????568832??2014-10-17?09:01??06\源程序\bbb.opt

?????文件????????240??2014-10-17?08:52??06\源程序\bbb.plg

?????文件??????47090??2007-12-06?13:58??06\源程序\bbb.rc

?????文件???????5532??2005-12-18?14:55??06\源程序\bbb.rc.bak

?????文件???????9965??2007-12-07?13:30??06\源程序\bbbDlg.cpp

?????文件??????????0??2005-12-18?15:12??06\源程序\bbbDlg.cpp.bak

?????文件???????3719??2007-12-03?15:39??06\源程序\bbbDlg.h

?????文件???????1689??2007-12-05?10:59??06\源程序\CustomGrid.cpp

?????文件???????1323??2007-12-05?10:59??06\源程序\CustomGrid.h

?????文件??????12849??2008-01-29?12:57??06\源程序\D.cpp

?????文件????5760000??2006-01-09?11:41??06\源程序\Debug\bbb.bsc

?????文件????8155266??2008-01-28?08:42??06\源程序\Debug\bbb.exe

?????文件????1021312??2008-01-28?08:42??06\源程序\Debug\bbb.ilk

?????文件??????83988??2008-01-28?08:42??06\源程序\Debug\bbb.obj

?????文件????7738304??2008-01-26?15:36??06\源程序\Debug\bbb.pch

?????文件????1246208??2008-01-28?08:42??06\源程序\Debug\bbb.pdb

?????文件????6317308??2008-01-26?15:36??06\源程序\Debug\bbb.res

?????文件??????????0??2006-01-09?11:40??06\源程序\Debug\bbb.sbr

?????文件??????72454??2008-01-26?15:36??06\源程序\Debug\bbbDlg.obj

?????文件??????????0??2006-01-09?11:40??06\源程序\Debug\bbbDlg.sbr

............此處省略261個文件信息

評論

共有 條評論