myconnection.h
来自「本程序使用Visual C++6.0编写」· C头文件 代码 · 共 32 行
H
32 行
// MyConnection.h: interface for the CMyConnection class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MYCONNECTION_H__1EA31D5A_569C_42E3_9B8D_222520324DB9__INCLUDED_)
#define AFX_MYCONNECTION_H__1EA31D5A_569C_42E3_9B8D_222520324DB9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMyConnection
{
public:
CMyConnection();
virtual ~CMyConnection();
_ConnectionPtr GetConnection();
//access数据库用该方法
bool Open(CString FilePath);
//SQL Server2000用该方法
bool Open(CString IP,CString User,CString Password,CString Database="ElectricManagement");
bool IsOpen;
void Execute(CString SQLstr);
void Close();
private:
_ConnectionPtr m_pConnection;
};
#endif // !defined(AFX_MYCONNECTION_H__1EA31D5A_569C_42E3_9B8D_222520324DB9__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?