#include <afx>
#include <iostream>
#import "C:Program FilesCommon FilesSystemADOmsado15.dll" no_namespace rename("EOF","adoEOF")
using namespace std;
#define BUFSIZE 64
int main()
{
//char buf[BUFSIZE];
//int index;
_ConnectionPtr m_pConnection;
CoInitialize(NULL);//初始化COM组件
HRESULT hr=