c语言访问数据库 不用odbc,急问ODBC访问数据库问题

急问ODBC访问数据库问题

c语言用ODBC访问access,编译时出错,都是头文件的错误,实在搞不明白,恳求各位大牛大虾们指教小弟!!急~~~~~~~~~~

#include

#include

#include

//#include

//#include

#include

#include

#include

#include

#include

#include

#include

int main()

{

……………………

}

Compiling...

odbc.c

f:\microsoft visual studio\vc98\include\sqltypes.h(114) : error C2061: syntax error : identifier 'SQLHWND'

f:\microsoft visual studio\vc98\include\sqltypes.h(114) : error C2059: syntax error : ';'

f:\microsoft visual studio\vc98\include\sqltypes.h(252) : error C2061: syntax error : identifier 'DWORD'

f:\microsoft visual studio\vc98\include\sqltypes.h(253) : error C2061: syntax error : identifier 'Data2'

f:\microsoft visual studio\vc98\include\sqltypes.h(253) : error C2059: syntax error : ';'

f:\microsoft visual studio\vc98\include\sqltypes.h(254) : error C2061: syntax error : identifier 'Data3'

f:\microsoft visual studio\vc98\include\sqltypes.h(254) : error C2059: syntax error : ';'

f:\microsoft visual studio\vc98\include\sqltypes.h(255) : error C2061: syntax error : identifier 'Data4'

f:\microsoft visual studio\vc98\include\sqltypes.h(255) : error C2059: syntax error : ';'

f:\microsoft visual studio\vc98\include\sqltypes.h(255) : error C2059: syntax error : '['

f:\microsoft visual studio\vc98\include\sqltypes.h(256) : error C2059: syntax error : '}'

f:\microsoft visual studio\vc98\include\sqlext.h(1678) : error C2146: syntax error : missing ')' before identifier 'hwnd'

f:\microsoft visual studio\vc98\include\sqlext.h(1678) : error C2081: 'SQLHWND' : name in formal parameter list illegal

f:\microsoft visual studio\vc98\include\sqlext.h(1678) : error C2061: syntax error : identifier 'hwnd'

f:\microsoft visual studio\vc98\include\sqlext.h(1678) : error C2059: syntax error : ';'

f:\microsoft visual studio\vc98\include\sqlext.h(1678) : error C2059: syntax error : ','

f:\microsoft visual studio\vc98\include\sqlext.h(1684) : error C2059: syntax error : ')'

f:\microsoft visual studio\vc98\include\sqlext.h(2009) : error C2143: syntax error : missing '{' before '__stdcall'

f:\microsoft visual studio\vc98\include\sqlext.h(2010) : error C2143: syntax error : missing '{' before '__stdcall'

f:\microsoft visual studio\vc98\include\sqlext.h(2026) : error C2143: syntax error : missing ';' before '*'

f:\microsoft visual studio\vc98\include\sqlext.h(2026) : error C2059: syntax error : '*'

f:\microsoft visual studio\vc98\include\sqlext.h(2027) : error C2061: syntax error : identifier 'dwFlags'

f:\microsoft visual studio\vc98\include\sqlext.h(2027) : error C2059: syntax error : ';'

f:\microsoft visual studio\vc98\include\sqlext.h(2029) : error C2061: syntax error : identifier 'WCHAR'

f:\microsoft visual studio\vc98\include\sqlext.h(2030) : error C2143: syntax error : missing '{' before '*'

f:\microsoft visual studio\vc98\include\sqlext.h(2031) : error C2059: syntax error : '}'

f:\microsoft visual studio\vc98\include\sqlext.h(2033) : error C2061: syntax error : identifier 'WCHAR'

f:\microsoft visual studio\vc98\include\sqlext.h(2034) : error C2143: syntax error : missing '{' before '*'

f:\microsoft visual studio\vc98\include\sqlext.h(2035) : error C2059: syntax error : '}'

f:\microsoft visual studio\vc98\include\sqlext.h(2037) : error C2059: syntax error : '}'

f:\microsoft visual studio\vc98\include\sqlext.h(2038) : error C2143: syntax error : missing '{' before '__stdcall'

f:\microsoft visual studio\vc98\include\sqlucode.h(270) : error C2146: syntax error : missing ')' before identifier 'hwnd'

f:\microsoft visual studio\vc98\include\sqlucode.h(270) : error C2081: 'SQLHWND' : name in formal parameter list illegal

f:\microsoft visual studio\vc98\include\sqlucode.h(270) : error C2061: syntax error : identifier 'hwnd'

f:\microsoft visual studio\vc98\include\sqlucode.h(270) : error C2059: syntax error : ';'

f:\microsoft visual studio\vc98\include\sqlucode.h(270) : error C2059: syntax error : ','

f:\microsoft visual studio\vc98\include\sqlucode.h(276) : error C2059: syntax error : ')'

f:\microsoft visual studio\vc98\include\sqlucode.h(627) : error C2146: syntax error : missing ')' before identifier 'hwnd'

f:\microsoft visual studio\vc98\include\sqlucode.h(627) : error C2081: 'SQLHWND' : name in formal parameter list illegal

f:\microsoft visual studio\vc98\include\sqlucode.h(627) : error C2061: syntax error : identifier 'hwnd'

f:\microsoft visual studio\vc98\include\sqlucode.h(627) : error C2059: syntax error : ';'

f:\microsoft visual studio\vc98\include\sqlucode.h(627) : error C2059: syntax error : ','

f:\microsoft visual studio\vc98\include\sqlucode.h(633) : error C2059: syntax error : ')'

Error executing cl.exe.

odbc.obj - 43 error(s), 0 warning(s)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值