摘要: 准备:(1)、引入ADO类1 #import "c:/program files/common files/system/ado/msado15.dll" /2 no_namespace /3 rename ("EOF", "adoEOF")2)、初始化COM在MFC中可以用AfxOleInit();非MFC环境中用:CoInitialize(NULL);CoUnInitialize();(3)#import 包含后就可以用3个智能指针了:_ConnectionPtr、_RecordsetPtr和_CommandPtr1.连接和关闭数 阅读全文
posted @ 2014-03-26 16:56 风一兮 阅读(639) 评论(0) 推荐(0) 编辑