ADO程序不认识_ConnectionPtr m_pConnect;指针

来源:互联网 发布:coc挂机软件 编辑:程序博客网 时间:2024/04/29 02:08

今天一天都在尝试把自己的程序ADO连接数据库,本来介绍的很简单的几部,我却一直有错误。

错误是:基本步骤都肯定完成后,ADO程序不认识_ConnectionPtr   m_pConnect;指针,

error C2146: syntax error : missing ';' before identifier 'm_pConnection'
error C2501: '_ConnectionPtr' : missing storage-class or type specifiers
error C2501: 'm_pConnection' : missing storage-class or type specifiers
 

晚上的时候终于在论坛上看到,原来遇到这种情况,只要重新编译一下stdafx.cpp文件,(或是rebuild all)就可以了。

真是郁闷,浪费了一天的时间在这里。记住这一点哦!

原创粉丝点击