在vc下编了一个简单的读取和修改数据库的程序出现下面的错误,还请大家帮忙:
StdAfx.cpp
e:\my practice\ado_practice\debug\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
c:\program files\microsoft visual studio\vc98\include\icrsint.h(19) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition
c:\program files\microsoft visual studio\vc98\include\icrsint.h(19) : fatal error C1004: unexpected end of file found
Error executing cl.exe.ADO_practice.exe - 2 error(s), 1 warning(s)

解决方案 »

  1.   

    在StdAfx.h里我将#include "ICRSINT.H"的位置移到第一行则错误就变为:
    StdAfx.cpp
    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>
    Error executing cl.exe.ADO_practice.exe - 1 error(s), 0 warning(s)
      

  2.   

    推荐你看看 codeguru 上的一篇文章《ADO is AOK (a simple ADO tutorial)》,还有例子程序,我以前就是看了这篇文章后知道编写 VC + ADO 的程序的,是 1999 年的文章
    http://www.codeguru.com/mfc_database/Ado_Aok.shtml