CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  数据库

工程中一加入#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace 就错,为何??错误是。。

楼主wang_bluebird(bluebird)2005-04-04 16:48:32 在 VC/MFC / 数据库 提问

error   C2629:   unexpected   'short   ('  
  c:\test\one\debug\msado15.tlh(1315)   :   error   C2238:   unexpected   token(s)   preceding   ';'  
  c:\test\one\stdafx.cpp(5)   :   error   C2501:   'rename'   :   missing   storage-class   or   type   specifiers  
  c:\test\one\stdafx.cpp(5)   :   error   C2373:   'rename'   :   redefinition;   different   type   modifiers  
                  e:\microsoft   visual   studio\vc98\include\stdio.h(335)   :   see   declaration   of   'rename'  
  c:\test\one\stdafx.cpp(5)   :   error   C2078:   too   many   initializers  
  c:\test\one\stdafx.cpp(5)   :   error   C2440:   'initializing'   :   cannot   convert   from   'char   [7]'   to   'int'  
                  This   conversion   requires   a   reinterpret_cast,   a   C-style   cast   or   function-style   cast  
  c:\test\one\stdafx.cpp(5)   :   error   C2143:   syntax   error   :   missing   ';'   before   'PCH   creation   point'  
  Error   executing   cl.exe.  
  Creating   browse   info   file...  
   
  one.exe   -   7   error(s),   1   warning(s)  
   
   
  错误提示处理是  
      VARIANT_BOOL   EOF;  
          __declspec(property(get=GetAbsolutePage,put=PutAbsolutePage))  
          PositionEnum_Param   AbsolutePage;  
          __declspec(property(get=GetLockType,put=PutLockType))  
          enum   LockTypeEnum   LockType;  
          __declspec(property(get=GetMaxRecords,put=PutMaxRecords))  
  问题点数:0、回复次数:3Top

1 楼wang_bluebird(bluebird)回复于 2005-04-05 14:24:05 得分 0

////////////////should   be   at   the   file   last  
  //////////////  
  ////////////  
  #import   "c:\program   files\common   files\system\ado\msado15.dll"   no_namespace   rename("EOF","adoEOF")Top

2 楼wang_bluebird(bluebird)回复于 2005-04-05 14:32:13 得分 0

#pragma   warning(disable:4146)  
  #import   "c:\program   files\common   files\system\ado\msado15.dll"   \  
  rename("EOF","adoEOF")  
  #pragma   warning(default:4146)  
  using   namespace   ADODB;  
  参见  
  http://blog.csdn.net/laiyiling/archive/2004/08/28/87654.aspxTop

3 楼littleeagle007(007)回复于 2005-04-12 09:34:22 得分 0

#import   "c:\program   files\common   files\system\ado\msado15.dll"   no_namespace   rename("EOF","adoEOF")   rename("EOF","adoEOF")  
   
  Top

相关问题

  • 调c的dll!
  • C# Dll 问题
  • 关于C++ 与 DLL
  • C#怎么使用c写的dll啊?
  • c++如何调用c写的dll??
  • 向高手學習!C# 訪問 DLL(C++)
  • c/c++的dll编程问题,??
  • 怎样用C写DLL
  • 如何用C写DLL
  • vb调用C写的DLL

关键词

  • ado
  • cpp
  • program
  • dll
  • msado15
  • rename
  • adoeof
  • stdafx
  • eof
  • namespace

得分解答快速导航

  • 帖主:wang_bluebird

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo