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 閱讀(754) 評論(0)  編輯  收藏 所屬分類: C++

          導航

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

          統計

          常用鏈接

          留言簿(7)

          隨筆分類

          隨筆檔案

          相冊

          Photo

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 来安县| 油尖旺区| 新竹市| 鸡泽县| 湟中县| 乳山市| 彰化市| 北辰区| 济源市| 旺苍县| 甘谷县| 子长县| 望谟县| 哈密市| 同心县| 湘潭市| 山东省| 庄河市| 陕西省| 郁南县| 沁阳市| 庐江县| 太保市| 涡阳县| 洛川县| 安庆市| 达孜县| 固安县| 新密市| 清河县| 民县| 武鸣县| 辉南县| 岑溪市| 龙陵县| 黑山县| 漠河县| 白山市| 陵川县| 双江| 彭水|