首页上一页 1 下一页尾页 1 条记录 1/1页
《visual c++ 入门到精通》求救
发表在C语言图书答疑
2009-10-22
是否精华
是
否
版块置顶:
是
否
我在CLibrary.app中
_ConnectionPtr m_pCon; //ADO连接对象
_RecordsetPtr m_pRs;
_RecordsetPtr m_pRs1;
_CommandPtr m_pCom;
BOOL Flag = FALSE; //登录标识
CString user,password;//记录当前用户
CReport report;
在登陆窗口的头文件里
extern CString user;
extern CString password;
extern CLibraryApp theApp;
extern BOOL Flag;
extern _ConnectionPtr m_pCon; //ADO连接对象
extern _ConnrdsetPtr m_pRs;
extern _CommandPtr m_pCom;
运行程序时报错
I:\MSDev98\MyProjects\复件 (2) Library\DlgLogin.cpp(20) : error C2146: syntax error : missing ';' before identifier 'm_pCon'
I:\MSDev98\MyProjects\复件 (2) Library\DlgLogin.cpp(20) : fatal error C1004: unexpected end of file found
Library.cpp
I:\MSDev98\MyProjects\复件 (2) Library\Library.cpp(40) : error C2146: syntax error : missing ';' before identifier 'm_pCon'
I:\MSDev98\MyProjects\复件 (2) Library\Library.cpp(40) : error C2501: '_ConnectionPtr' : missing storage-class or type specifiers
I:\MSDev98\MyProjects\复件 (2) Library\Library.cpp(40) : fatal error C1004: unexpected end of file found
Generating Code...
Error executing cl.exe.
帮忙看看啊
_ConnectionPtr m_pCon; //ADO连接对象
_RecordsetPtr m_pRs;
_RecordsetPtr m_pRs1;
_CommandPtr m_pCom;
BOOL Flag = FALSE; //登录标识
CString user,password;//记录当前用户
CReport report;
在登陆窗口的头文件里
extern CString user;
extern CString password;
extern CLibraryApp theApp;
extern BOOL Flag;
extern _ConnectionPtr m_pCon; //ADO连接对象
extern _ConnrdsetPtr m_pRs;
extern _CommandPtr m_pCom;
运行程序时报错
I:\MSDev98\MyProjects\复件 (2) Library\DlgLogin.cpp(20) : error C2146: syntax error : missing ';' before identifier 'm_pCon'
I:\MSDev98\MyProjects\复件 (2) Library\DlgLogin.cpp(20) : fatal error C1004: unexpected end of file found
Library.cpp
I:\MSDev98\MyProjects\复件 (2) Library\Library.cpp(40) : error C2146: syntax error : missing ';' before identifier 'm_pCon'
I:\MSDev98\MyProjects\复件 (2) Library\Library.cpp(40) : error C2501: '_ConnectionPtr' : missing storage-class or type specifiers
I:\MSDev98\MyProjects\复件 (2) Library\Library.cpp(40) : fatal error C1004: unexpected end of file found
Generating Code...
Error executing cl.exe.
帮忙看看啊