⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ado1doc.cpp

📁 简单使用ad0数据库
💻 CPP
字号:
// ado1Doc.cpp : implementation of the CAdo1Doc class
//

#include "stdafx.h"
#include "ado1.h"

#include "ado1Doc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CAdo1Doc

IMPLEMENT_DYNCREATE(CAdo1Doc, CDocument)

BEGIN_MESSAGE_MAP(CAdo1Doc, CDocument)
	//{{AFX_MSG_MAP(CAdo1Doc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(CAdo1Doc, CDocument)
	//{{AFX_DISPATCH_MAP(CAdo1Doc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//      DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// Note: we add support for IID_IAdo1 to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {FD8DB0C2-A3ED-4CD9-AE85-D8C23544A6B0}
static const IID IID_IAdo1 =
{ 0xfd8db0c2, 0xa3ed, 0x4cd9, { 0xae, 0x85, 0xd8, 0xc2, 0x35, 0x44, 0xa6, 0xb0 } };

BEGIN_INTERFACE_MAP(CAdo1Doc, CDocument)
	INTERFACE_PART(CAdo1Doc, IID_IAdo1, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAdo1Doc construction/destruction

CAdo1Doc::CAdo1Doc()
{
	// TODO: add one-time construction code here

	EnableAutomation();

	AfxOleLockApp();
}

CAdo1Doc::~CAdo1Doc()
{
	AfxOleUnlockApp();
}

BOOL CAdo1Doc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CAdo1Doc serialization

void CAdo1Doc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CAdo1Doc diagnostics

#ifdef _DEBUG
void CAdo1Doc::AssertValid() const
{
	CDocument::AssertValid();
}

void CAdo1Doc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CAdo1Doc commands

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -