| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2093 人关注过本帖
标题:求助:error C2501: 'SQLHEHV' : missing storage-class or type specifiers
只看楼主 加入收藏
dujp124
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2005-11-30
收藏
 问题点数:0 回复次数:1 
求助:error C2501: 'SQLHEHV' : missing storage-class or type specifiers

为了使用ODBC API方式连接数据库,所以自己创建了一个类CMyODBD,但是编译的时候显示错误.
头文件程序如下:
class CMyODBC
{
public:
BOOL ConnectDB(const char *cpServerName, const char *cpUserName, const char *cpPassword);
CMyODBC();
virtual ~CMyODBC();
BOOL ExeSqlDirect(const char *cpSqlStmt);
SQLHEHV m_henv;
SQLHDBC m_hdbc;
SQLHSTMT m_hstmt;
SQLRETURN m_retcode;
};
错误信息如下:
error C2146: syntax error : missing ';' before identifier 'm_henv'
error C2501: 'SQLHEHV' : missing storage-class or type specifiers
error C2501: 'm_henv' : missing storage-class or type specifiers

请各位大虾指点啊~~~~~

搜索更多相关主题的帖子: error SQLHEHV missing specifiers type 
2005-12-01 12:17
dujp124
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2005-11-30
收藏
得分:0 

是不是缺少某个头文件啊?

2005-12-01 14:50
快速回复:求助:error C2501: 'SQLHEHV' : missing storage-class or type speci ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017748 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved