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

📄 dbsrv.h

📁 VC.Net教程,选的较好的例子.
💻 H
字号:
#ifndef _DBSERVER_INCLUDE
#define _DBSERVER_INCLUDE

typedef long HRESULT;

class CDB {
  // Interfaces
  public:
	  	// Interface for data access
		HRESULT Read(short nTable, short nRow, LPTSTR lpszData);
		HRESULT Write(short nTable, short nRow, LPCTSTR lpszData);

		// Interface for database management
		HRESULT Create(short &nTable, LPCTSTR lpszName);
		HRESULT Delete(short nTable);

		// Interface for database information
		HRESULT GetNumTables(short &nNumTables);
		HRESULT GetTableName(short nTable, LPTSTR lpszName);
		HRESULT GetNumRows(short nTable, short &nRows);

  // Implementation
  private:
  	CPtrArray 	 m_arrTables; 	 // Array of pointers to CStringArray (the "database")
		CStringArray m_arrNames; // Array of table names
	public:
		~CDB();
};

#endif

⌨️ 快捷键说明

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