C++实现连接SQL SERVER2008(_ConnectionPtr、_RecordsetPtr、_CommandPtr)
一、环境配置映入ADO动态库:#import"C:\ProgramFiles\CommonFiles\System\ado\msado15.dll"no_namespacerename("EOF","EndOfFile")rename("BOF","FirstOfFile")二、软件界面三、源码//testDlg.cpp:实现文件//#include"stdafx.h"#include"test.