呵呵,很丢人的问题,我想使用ado访问数据库,但是我定义了_ConnectionPtr m_pConnection之后,编译出错。
syntax error : missing ';' before identifier 'm_pConnection'
'_Connection' : missing storage-class or type specifiers
error C2501: 'm_pConnection' : missing storage-class or type specifiers
汗!
我觉得是没有包含什么头文件,但不知道该怎么办。
我已经在APP的初始化种AfxOleInit()了。并且在stdafx.h中import了。
可是还是不行。