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

          導航

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

          統計

          常用鏈接

          留言簿(7)

          隨筆分類

          隨筆檔案

          相冊

          Photo

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 潜山县| 子长县| 博客| 平江县| 余庆县| 福建省| 宁远县| 陇西县| 通州区| 清苑县| 洪洞县| 广灵县| 千阳县| 神木县| 肥城市| 沈阳市| 安新县| 双流县| 砀山县| 黔南| 巴东县| 莱芜市| 文昌市| 乌兰浩特市| 沁水县| 桐城市| 陈巴尔虎旗| 广宗县| 汝阳县| 嘉义县| 砀山县| 渭源县| 都安| 邵阳市| 杭州市| 黑水县| 隆安县| 靖西县| 龙南县| 福鼎市| 无为县|