📄 sqlservertblwrappers.h
字号:
#ifndef SQL_SERVER_WRAPPERS_H
#define SQL_SERVER_WRAPPERS_H
#include <string>
#include <ole2.h>
#include <conio.h>
#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","adoEOF")
//针对SQLServer数据库表操作的封装。
class SQLServerTblWrappers
{
public:
bool ConnectDB(const char* cfgFile); //读配置文件连接SQLServer数据库。
bool ExecuteSQL(const char* SQLStr); //执行指定的SQL语句。
bool DisconnectDB();
_RecordsetPtr pRS_; //数据库记录集合的指针。
protected:
bool getConnectStr(const char* cfgFile, std::string& connStr);
private:
_ConnectionPtr pConn_; //连接数据库的指针。
_variant_t RecordsAffected_;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -