我用记录集对象m_Recordset->Open(str1.AllocSysString(),
m_pConnection.GetInterfacePtr(),
adOpenDynamic,
adLockOptimistic,
adCmdText);
为什么调试时说left of '.GetInterfacePtr' must have class/struct/union type
m_pConnection' : undeclared identifier
我的_connectionptr对象在myapp的public中定义了为什么不行。
谢谢。
m_pConnection.GetInterfacePtr(),
adOpenDynamic,
adLockOptimistic,
adCmdText);
为什么调试时说left of '.GetInterfacePtr' must have class/struct/union type
m_pConnection' : undeclared identifier
我的_connectionptr对象在myapp的public中定义了为什么不行。
谢谢。
另外,你的 m_pConnection在哪里定义的,在这个错误之前有没有说 m_pConnection未定义的错误。
但是为什么不行
用extern声明后直接就是系统错误,但是我看书上的很多例子都是用extren声名的但是为什么 他们的都没有问题
To 楼主:给出你定义的地方吧。你的...App.h/和...App.cpp