..\msado15.tlh(171)error c2011: 'locktypeenum' : 'enum' type redefinition
..\msado15.tlh(214) : error c2011: 'datatypeenum' : 'enum' type redefinition
..\msado15.tlh(258) : error c2011: 'fieldattributeenum' : 'enum' type redefinition
..\msado15.tlh(279) : error c2011: 'editmodeenum' : 'enum' type redefinition
..\msado15.tlh(287) : error c2011: 'recordstatusenum' : 'enum' type redefinition
..\msado15.tlh(531) : error c2011: 'parameterdirectionenum' : 'enum' type redefinition
解決方法:
1複製以下**到stdafx.h
#import "c:\program files\common files\system\ado\msado15.dll" \
no_namespace rename("eof", "adoeof")rename("bof","adobof")
2將 巨集 _afx_no_dao_support 新增到setting->c/c++(category下拉框選中 preprocessor)->preprocessor definitions 的最後即可
MFC ADO資料庫操作
內容比較亂,作為草稿,對現有的ado資料庫操作函式方法進行彙總。小函式m precordset recordcount 取得記錄數量 全域性變數 import msado15.dll no namespace rename eof adoeof rename bof adobof connectio...
MFC ADO資料庫操作
mfc ado資料庫操作 延陵小明 csdn部落格 內容比較亂,作為草稿,對現有的ado資料庫操作函式方法進行彙總。小函式 m precordset recordcount 取得記錄數量 全域性變數 import msado15.dll no namespace rename eof adoeof ...
MFC ADO資料庫操作
mfc ado資料庫操作 延陵小明 csdn部落格 內容比較亂,作為草稿,對現有的ado資料庫操作函式方法進行彙總。小函式 m precordset recordcount 取得記錄數量 全域性變數 import msado15.dll no namespace rename eof adoeof ...