Tao

          Tao obeys its own inherent Nature

          type redefinition Error after Import ADO in vc++

          Correct Implementation of #import
          It is important to invoke ADO correctly in your program, or you can have compiler errors. The following code demonstrates the correct way to use #import with Msado10.dll the MSADO15.dll:

          #import <msado15.dll>            \
          no_namespace \
          rename( "EOF", "adoEOF" )

          error C2011: 'EditModeEnum' : 'enum' type redefinition
          error C2011: 'LockTypeEnum' : 'enum' type redefinition
          error C2011: 'FieldAttributeEnum' : 'enum' type redefinition
          error C2011: 'DataTypeEnum' : 'enum' type redefinition
          error C2011: 'ParameterDirectionEnum' : 'enum' type redefinition
          error C2011: 'RecordStatusEnum' : 'enum' type redefinition

          Here's the original solution in MSDN:
          http://support.microsoft.com/kb/169496/EN-US/


           

          posted on 2007-08-30 18:39 wade 閱讀(753) 評論(0)  編輯  收藏 所屬分類: C++

          導航

          <2007年8月>
          2930311234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          統計

          常用鏈接

          留言簿(7)

          隨筆分類

          隨筆檔案

          相冊

          Photo

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 江门市| 明水县| 平舆县| 鹤山市| 太和县| 开封市| 墨脱县| 临汾市| 肇庆市| 普宁市| 当雄县| 紫阳县| 广安市| 湖南省| 南川市| 安陆市| 邹平县| 新乡市| 扎鲁特旗| 勃利县| 尚志市| 南开区| 隆德县| 南岸区| 克东县| 平罗县| 济南市| 军事| 宝兴县| 大宁县| 平远县| 永济市| 张家界市| 社会| 鄂尔多斯市| 景泰县| 法库县| 青冈县| 高唐县| 蒙阴县| 夏邑县|