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

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 蒲城县| 新蔡县| 钟祥市| 永新县| 皮山县| 吴桥县| 鱼台县| 崇阳县| 息烽县| 光泽县| 桦南县| 万荣县| 泽库县| 丹棱县| 泰安市| 海原县| 梅州市| 鄂尔多斯市| 阿尔山市| 平顶山市| 岳阳县| 平安县| 山西省| 平度市| 旬阳县| 嘉义市| 常山县| 普陀区| 唐河县| 金乡县| 六盘水市| 乃东县| 手机| 大埔区| 曲松县| 蕲春县| 静乐县| 紫阳县| 星子县| 武川县| 崇左市|