为什么m_pConnection没有指向啊???

来源:百度知道 编辑:UC知道 时间:2024/06/03 18:00:13
我定义了_ConnectionPtr m_pConnection;之后
m_pConnection.
之后编译器没有反应啊!为什么呢??
我已经在.H里面加载了
#import "c:\program files\common files\system\ado\msado15.dll" \
no_namespace \
rename ("EOF", "adoEOF")
并且路径正确啊!
我用的VS2005

在stdafx.h中添加如下语句饮用ADO智能指针
#import "c:\Program Files\Common Files\System\ADO\msado15.dll" \
rename_namespace("ADOCG") rename("EOF", "EndOfFile") rename("BOF", "BeginOfFile")
using namespace ADOCG;

否则编译器认为ADO智能指针未定义

谢谢