亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? readme.txt

?? Visual C++ 數 據 庫
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
DaoLib 1.0 - A complete solution for real world database development.


1 - Requirements - Getting started
2 - Introduction
3 - Core components
4 - Intermediate abstractions
5 - User interface components
6 - Tutorial and code samples
7 - Deployment
8 - Feedback - Support
9 - Reference



1 - Requirements - Getting started

	Unzip the DaoLib file maintaining the directory structure (-d). This
library requires Visual C++ 6.x installed on the development system. The 
evaluation version is fully functional, with a limit of 10 controls per 
dialog and an annoying reminder.



2 - Introduction

	The power of the DAO interface for dealing with databases is an
undeniable fact. It provides a fast and reliable mechanism for data management 
of Access and other ISAM and ODBC databases. Though it was engineered 
targeting scripting languages such as Visual Basic and VBA, it provides a dual 
interface, which allows straightforward C and C++ handling of its methods and 
properties.
	
	The C/C++ developer has several options:

	a) Deal with COM interfaces such as DAODatabase, DAORecordset and the 
like using the OS built-in OLE support. This could be tedious and error prone, 
since the developer has to deal with reference counting, object releasing and 
other COM annoying aspects.

	b) Go up one level through a C++ proxy. Microsoft provides such a 
proxy-wrapper in its DAO library. This library is rowset-oriented and provides 
a valuable variable binding mechanism, but it is not the best solution for 
handling record-oriented applications.

	c) Use some framework which integrates the database specifics with a 
user interface management. MFC-DAO is an example of this approach. The problem 
here is that the integration is best suited for a Doc/View architecture, and 
it adds some complexity when dealing with dialog intensive applications.

	DaoLib was built with this three-level separation of concerns. It deals 
with all the COM burden, such as exception handling, reference counting and 
object lifespan. It provides a wrapper level you can access directly, and it 
integrates to MFC with little overhead.



3 - Core components

	The classes at this level are wrapped around DAO components. In 
addition, we provide a handful of helper classes such as Bstr, Variant and 
Currency, which encapsulate the BSTR, VARIANT and CURRENCY semantics, allowing 
a very robust parameter handling. ErrorInfo manages error handling, converting 
COM error objects into C++ exceptions.

	The instantiation of Dao objects was simplified through smart 
constructors, many of which take no arguments or a single string object. The 
enumerator semantics is replaced by a simpler indexing mechanism. The use of 
the 'property' Microsoft extension allows a 'VB-like' syntax in many cases: 
using Variant indexes, you can refer to a specific field as:
	FieldValue[0] or as: FieldValue["CustomerID"]
In addition, the same property (if marked read/write) can be a left or right 
value.

	These are the core components and their mapping to DAO components:

	Field			DAOField
	Recordset		DAORecordset
	Database		DAODatabase
	Workspace		DAOWorkspace
	DBEngine		DAODBEngine
	Parameter		DAOParameter
	QueryDef		DAOQueryDef
	TableDef		DAOTableDef
	Index			DAOIndex
	User			DAOUser
	Group			DAOGroup
	Relation		DAORelation
	Connection		DAOConnection
	Property		DAOProperty

	These are the helper classes and their COM counterparts:

	Bstr			BSTR
	Variant			VARIANT
	Currency		CURRENCY

	These have no counterparts:
	
	ErrorInfo		Error handling through exception throwing.
	DaoBase			Base class for every Dao component. It manages
				reference counting and object releasing.



4 - Intermediate abstractions

	In order to connect database objects with user interface elements 
such as controls, windows or dialogs, a couple of intermediate level 
abstract classes must be added to the hierarchy. These are DaoWindow and 
DaoControl. A windowing user interface element must inherit from DaoWindow 
and a control element from DaoControl to have complete control of its 
underlying database objects. They interact tightly with MFC transfer 
mechanisms. 



5 - User interface components

	DaoLib comes with several user interface components, but its open 
architecture allows you to add your own custom components. The basic 
components are:

	Windowing components:
		
		DaoDialog
		DaoPropSheet
		DaoPropPage

	Control components:
		
		DaoEdit
		DaoCheck
		DaoRadio
		DaoGroup
		DaoCombo
		DaoListCtrl

	Complete components:
		
		ListDialog
		
	The windowing components are intended to be used as base classes of
your dialog objects. You can create regular dialogs or property pages using 
the ClassWizard and then replace the base class in the declaration and add
the constructor arguments. ClassWizard will still recognize your class and 
it even will use DaoDialog or DaoPropPage when adding base class references.

	The control classes can be used directly. Once again, you create 
control objects with ClassWizard and then replace their declaration (you can 
use the 'Replace' command if you have many controls). You can manage some 
attributes of the controls at declaration time, such as enabling or writing 
denial.

	DaoLib includes a powerful dialog-based component called ListDialog.
It manages the display of Recordset objects through a list control, naming 
each header column upon the field's name and formatting the data according 
to each data type. In addition, it provides complete printing support for the
list control's contents, sorting through column header clicking, keyboard 
support (Insert for adding records, Delete for deleting, Enter for viewing),
and a mouse driven context menu with those same functions.



6 - Tutorial and code samples

	The use of the library does not require any special skill. If you use
Visual C++ and feel comfortable with the ClassWizard, you can produce DaoLib 
code immediately. The steps to follow are:

	1 - You can create a project without database support, or use an 
existing project. Add DaoLib.lib to the libraries in the project settings 
(Link page). Map the include path accordingly (C/C++ - Preprocessor).


	2 - In your project's main file add a global DBEngine object:

// The one and only CMyApp object

CMyApp theApp;

becomes:

// The one and only CMyApp object

DBEngine dbeng;
CMyApp theApp;


	3 - In the declaration of your App class, add the core #include and a 
Database object:

#include "resource.h"       // main symbols

becomes:

#include "resource.h"       // main symbols
#include "bordao.h"

and: 

class CMyApp : public CWinApp
{
public:
 
becomes:

class CMyApp : public CWinApp
{
	Database db;
public:
 

	4 - In InitInstance, add the Database initialization:

	CMainFrame* pFrame = new CMainFrame;
	m_pMainWnd = pFrame;

becomes:

	try {
	  	db = "mydata.mdb";		//full path here, unless same
  		Recordset::pdbase = &db;	//directory as .EXE
	}
	catch(ErrorInfo& e) {
   		e.Show(0);
		e.Destroy();
		return FALSE;
	}

	CMainFrame* pFrame = new CMainFrame;
	m_pMainWnd = pFrame;


	5 - Create the appropiate dialog resource. Assign each control an ID
that resembles the name of the field with which it is associated. You can 
optionally add a Modify button (ID = 302). It must be the first in the 
control creation order. You may also add a Enter button (ID = 301). It must 
be non-visible, non-tabstop and marked as default button (unmark the OK 
button).


	6 - Open the ClassWizard and create the CDialog as usual. For each 
control, assign a member variable (Category: Control) of the required type. 
If you want to use the macros provided with DaoLib (recommended), give each 
control the exact name of the corresponding field, prefixed with 'm_' (for a 
field named CustomerID it should be m_CustomerID).
	

	7 - Close the ClassWizard and go to the dialog's class declaration 
(*.h file). Replace CDialog with CDaoDialog in the inheritance tag and add 
two parameters to the constructor before the existing one:

class CMyDialog : public CDialog
{
// Construction
public:
	CMyDialog(CWnd* Parent = NULL);

becomes:

class CMyDialog : public CDaoDialog
{
// Construction
public:
	CMyDialog(LPCSTR s = 0, bool a = 0, CWnd* Parent = NULL);
	

	8 - Replace the member control objects with the appropiate ones:

// Dialog Data
	//{{AFX_DATA(CMyDialog)
	enum { IDD = IDD_MYDIALOG };
	CEdit	m_CustomerID;
	CButton m_NewCustomer;

becomes:

// Dialog Data
	//{{AFX_DATA(CMyDialog)
	enum { IDD = IDD_MYDIALOG };
	CDaoEdit	m_CustomerID;
	CDaoCheck 	m_NewCustomer;
	

	9 - Go to the implementation file (*.cpp) and add the #includes you
need before the declaration file #include. In this case:

#include "stdafx.h"
#include "MyDialog.h"

becomes:

#include "stdafx.h"
#include "DaoDialog.h"
#include "DaoEdit.h"
#include "DaoCheck.h"
#include "MyDialog.h"


	10 - Modify the constructor accordingly.

CMyDialog::CMyDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CMyDialog::IDD, pParent)
{

becomes:

CMyDialog::CMyDialog(LPCSTR s, bool a, CWnd* pParent /*=NULL*/)
	: CDaoDialog(CMyDialog::IDD, pParent, s, a)
{


	11 - In the body of the constructor, add the initialization macros.

	//}}AFX_DATA_INIT
}

becomes:

	//}}AFX_DATA_INIT
	DAOCONTROL(CustomerID);
	DAOCONTROL(NewCustomer);
}


	12 - Replace CDialog in the message map macro with CDaoDialog

BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
	//{{AFX_MSG_MAP(CMyDialog)

becomes:

BEGIN_MESSAGE_MAP(CMyDialog, CDaoDialog)
	//{{AFX_MSG_MAP(CMyDialog)


	13 - That's it. Now you can construct an instance of your dialog and
execute it. This can be done from inside a menu response function:

	CString sql = "select * from Customers where CustomerID = 5477";
	try {
		CMyDialog Cust(sql);
		Cust.DoModal();
	}
	catch(ErrorInfo& e) {
		e.Show(*this);
		e.Destroy();
		return;
	}

or, for inserting a record:

	CString sql = "select * from Customers";
	try {
		CMyDialog Cust(sql, true);
		Cust.DoModal();
	}
	catch(ErrorInfo& e) {
		e.Show(*this);
		e.Destroy();
		return;
	}

or, if you want to use a ListCtrl:

	Recordset rs;
	try {
		rs = "select * from Customers";
	}
	catch(ErrorInfo& e) {
		e.Show(*this);
		e.Destroy();
		return;
	}
	CMyDialog Cust;
	CListDialog Lis(rs, &Cust);
	Lis.SetCaption("Listing of Customers");
	Lis.DoModal();

	Don't forget to #include the DaoLib specific headers in this file too, 
before the dialog declaration #include. If you use the ListCtrl component, you 
must add the corresponding resources from DaoLib.rc to your resource file.

#include "DaoDialog.h"
#include "DaoEdit.h"
#include "DaoCheck.h"
#include "MyDialog.h"
#include "ListDialog.h"	//if using ListDialog

	If you don't use all the functionality of DaoLib, the linker may issue
warnings about not referencing some libraries: this is the normal behavior. 
If you compile and link a Debug version, you can get some other warnings about
conflicting libraries. The non-evaluation version of DaoLib comes with a 
Debug static library and complete source code.


	14 - The procedure for a property sheet is very similar. Take a look
at the accompanying sample code.



7 - Deployment

	Programs built using DaoLib need no additional dlls. Of course DAO is
required. A DaoLib license allows unlimited deployment.



8 - Feedback - Support

	This is not a Beta release: we at ARGSOFT use this library since 1996 
(VC++ 4.2) for our custom products, and it only required some updating from 
time to time. We are aware that other developers may have quite different 
needs, so we will appreciate feedback. Please write to:
 
	feedback@argsoft.com

	ARGSOFT provides full support for the registered version. Evaluators
may ask for support, and in most cases they will get it. Please write to:

	support@argsoft.com



9 - Reference

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人免费小视频| 日韩一区二区在线播放| 日本一区二区三区电影| 国产在线播放一区| 久久嫩草精品久久久精品一| 国产老妇另类xxxxx| 欧美精品一区二区高清在线观看| 丝袜亚洲另类丝袜在线| 日韩一区二区免费在线观看| 久久电影网电视剧免费观看| 久久久久久99精品| 国产成人福利片| 成人欧美一区二区三区在线播放| 一本大道综合伊人精品热热| 亚洲一区在线视频| 欧美日韩国产一区| 国产资源在线一区| 国产精品美女久久久久av爽李琼| 色诱视频网站一区| 麻豆久久久久久| 国产精品嫩草99a| 欧美色图天堂网| 色欧美日韩亚洲| 久久免费午夜影院| 国产一区二区主播在线| 性做久久久久久久免费看| 香蕉成人啪国产精品视频综合网| 日韩在线观看一区二区| 色屁屁一区二区| 欧美写真视频网站| 日韩精品一区二区在线观看| 久久久99免费| 国产精品传媒在线| 五月综合激情婷婷六月色窝| 久久99精品久久久久| 丁香一区二区三区| 欧洲精品中文字幕| 日韩一区二区三区免费观看| 国产香蕉久久精品综合网| 国产91露脸合集magnet| 一区免费观看视频| 精品久久一二三区| 欧美性三三影院| 成人高清视频在线| 久久99精品久久久| 亚洲1区2区3区视频| 国产免费观看久久| 日韩欧美三级在线| 91福利国产精品| 成人国产在线观看| 精品一区精品二区高清| 性久久久久久久| 最新不卡av在线| 国产日韩亚洲欧美综合| 538prom精品视频线放| 91美女在线观看| 国产成人午夜精品影院观看视频| 成人黄页在线观看| 亚洲视频在线观看三级| 久久久久久99久久久精品网站| 一本一道久久a久久精品| 欧美日本视频在线| 日韩一级精品视频在线观看| 久久久久久久一区| 狠狠色丁香九九婷婷综合五月| 午夜影院久久久| 樱花草国产18久久久久| 国产精品久久久久久福利一牛影视 | 亚洲国产精品久久不卡毛片| 国产精品麻豆久久久| 久久综合色婷婷| 欧美tk—视频vk| 欧美大片国产精品| 欧美一级片在线观看| 欧美日韩国产一级片| 欧美性色aⅴ视频一区日韩精品| 欧美三级欧美一级| 精品视频一区 二区 三区| 欧美午夜寂寞影院| 欧美日韩一区视频| 欧美日韩高清一区二区三区| 欧美性一二三区| 在线播放一区二区三区| 欧美日本一区二区三区| 日韩一区国产二区欧美三区| 日韩一区二区精品| 日韩久久久精品| 国产视频一区在线播放| 久久精品视频免费| 久久久久国产一区二区三区四区| 久久综合色综合88| 国产女主播视频一区二区| 久久久久久久久97黄色工厂| 国产精品美女一区二区三区| 国产精品久久久久久久岛一牛影视 | 亚洲国产岛国毛片在线| 国产精品福利电影一区二区三区四区| 国产精品久久久久影视| 亚洲男人都懂的| 日韩av一区二| 久久国产精品区| 国产很黄免费观看久久| 成人av电影免费观看| 欧美在线看片a免费观看| 日韩一区二区三区视频| 久久久国际精品| 亚洲欧美日韩国产手机在线 | 午夜国产不卡在线观看视频| 午夜精品爽啪视频| 国产传媒日韩欧美成人| 色综合一区二区三区| 777久久久精品| 国产午夜精品久久久久久免费视| 中文字幕日韩一区| 日韩电影在线一区| 成人黄色软件下载| 这里只有精品免费| 久久精品视频网| 午夜av一区二区三区| 国产精品伊人色| 欧美在线小视频| 亚洲精品在线一区二区| 亚洲精品国产精品乱码不99| 五月激情丁香一区二区三区| 国产盗摄精品一区二区三区在线 | 国产91精品一区二区麻豆网站 | 国产精品久久久久婷婷| 久久精品一区二区三区av| 中文在线一区二区| 麻豆成人91精品二区三区| 成人免费视频网站在线观看| 欧美亚洲高清一区| 亚洲综合一区二区精品导航| 欧美丰满少妇xxxbbb| 在线免费观看日本一区| 亚洲视频一二三区| 日本免费在线视频不卡一不卡二| 国产suv一区二区三区88区| 欧美美女喷水视频| 国产精品高潮久久久久无| 日本不卡视频一二三区| 日本久久电影网| 国产精品网站一区| 美女脱光内衣内裤视频久久网站 | 免费成人结看片| 色94色欧美sute亚洲13| 欧美精品一区二区三区在线| 亚洲成人tv网| 在线视频你懂得一区| 国产精品久久久久久久久免费相片 | 久久www免费人成看片高清| 欧美吞精做爰啪啪高潮| 国产精品久久久久久久久久免费看| 久久国产精品色| 日韩一区二区麻豆国产| 天天综合色天天| 欧美色视频在线观看| 一区二区三区四区不卡在线| 不卡视频在线观看| 日本一区二区电影| 国产大陆亚洲精品国产| 久久亚洲捆绑美女| 国产一区二区影院| 精品国产一区二区精华| 青青草精品视频| 欧美一区二区三区四区高清| 午夜精品福利一区二区三区av| 99riav一区二区三区| 国产精品视频你懂的| 成人午夜免费电影| 国产精品久久久久久久浪潮网站| 国产成a人无v码亚洲福利| 午夜免费欧美电影| 欧美精品一区二区久久婷婷| 欧美一级一级性生活免费录像| 成人美女视频在线观看18| 亚洲免费看黄网站| 欧美一二三四区在线| 在线一区二区三区四区| 国产一区二区精品久久99| 亚洲乱码国产乱码精品精小说 | jlzzjlzz亚洲女人18| 图片区日韩欧美亚洲| 亚洲欧洲av在线| 亚洲激情中文1区| 久久国产剧场电影| 国产网站一区二区| 波多野结衣亚洲| 国产精品欧美极品| 在线免费精品视频| 日韩极品在线观看| 日韩美女视频一区| 91美女视频网站| 日本va欧美va精品发布| 精品国产区一区| 高清不卡在线观看av| 一区二区三区免费看视频| 91精品一区二区三区久久久久久| 久久精品国产免费看久久精品| 国产视频一区二区在线观看|