|
// ADO SampleDoc.h : interface of the CADOSampleDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ADOSAMPLEDOC_H__5C5DE34E_D553_4332_AAE3_F5EC23CAF5A2__INCLUDED_)
#define AFX_ADOSAMPLEDOC_H__5C5DE34E_D553_4332_AAE3_F5EC23CAF5A2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CADOSampleDoc : public CDocument
{
protected: // create from serialization only
CADOSampleDoc();
DECLARE_DYNCREATE(CADOSampleDoc)
// Attributes
public:
// Operations
public:
CString GetConnectionString() { return m_szConnection; }
CString GetSQLString( int nIndex = 0 );
void SetSQLString( CString szSql, int nIndex = 0 );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CADOSampleDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CADOSampleDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
CString m_szConnection;
CStringList m_szSQL;
// Generated message map functions
protected:
//{{AFX_MSG(CADOSampleDoc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ADOSAMPLEDOC_H__5C5DE34E_D553_4332_AAE3_F5EC23CAF5A2__INCLUDED_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
In January 2005, David Cunningham and Chris Maunder created TheUltimateToolbox.com, a new group dedicated to the continued development, support and growth of Dundas Software’s award winning line of MFC, C++ and ActiveX control products.
Ultimate Grid for MFC, Ultimate Toolbox for MFC, and Ultimate TCP/IP have been stalwarts of C++/MFC development for a decade. Thousands of developers have used these products to speed their time to market, improve the quality of their finished products, and enhance the reliability and flexibility of their software.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.