我按书上写的,打开StdAfx.h文件,添加对ADO的支持代码:
#import "C:\\Program Files\\Common Files\\System\\ADO\\msado15.dll"
no_namespace rename("EOF","EndOfFile")
编译时为什么会出错?
错误指示:
StdAfx.cpp
e:\章国怀\e1302\debug\msado15.tlh(409) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
e:\章国怀\e1302\stdafx.h(17) : error C2146: syntax error : missing ';' before identifier 'rename'
e:\章国怀\e1302\stdafx.h(17) : error C2501: 'no_namespace' : missing storage-class or type specifiers
e:\章国怀\e1302\stdafx.h(17) : fatal error C1004: unexpected end of file found
哪位能帮忙哪里错了,难道是添加的头文件里面的位置错了?
#import "C:\\Program Files\\Common Files\\System\\ADO\\msado15.dll"
no_namespace rename("EOF","EndOfFile")
编译时为什么会出错?
错误指示:
StdAfx.cpp
e:\章国怀\e1302\debug\msado15.tlh(409) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
e:\章国怀\e1302\stdafx.h(17) : error C2146: syntax error : missing ';' before identifier 'rename'
e:\章国怀\e1302\stdafx.h(17) : error C2501: 'no_namespace' : missing storage-class or type specifiers
e:\章国怀\e1302\stdafx.h(17) : fatal error C1004: unexpected end of file found
哪位能帮忙哪里错了,难道是添加的头文件里面的位置错了?
解决方案 »
- 关于WM_message
- 哪位大侠修改过自己的软件让支持win7多点触控技术
- Unicode下char* 转 LPCTSTR
- 被困扰了几天,请教DCOM安全性问题?
- 如何在程序运行中改变窗体的大小?
- 招志同道合者开发游戏外挂
- 请问各位有没有什么API函数可以实现WINDOWS下NET SEND的功能??
- 有使用BCG库的朋友吗?有些问题不明白,想讨论一下。
- 我用InstallShield Developer 8作安装,如何才能做卸载呀???郁闷中。。。哪位大G帮帮忙?
- 高分求解:import msdasc.dll时出错,这是为什么?怎么搞定它
- WINPE里面使用WNetAddConnection2报1312Error
- 哪位对制作仓库管理软件有实战经验,求思路。现在要计算库存
no_namespace rename("EOF", "EndOfFile")
: warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
: warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>