[問題]
看板C_and_CPP (C/C++)作者asdfg1597860 (Jay)時間6年前 (2018/12/05 09:43)推噓0(0推 0噓 4→)留言4則, 3人參與討論串13/14 (看更多)
開發平台(Platform): (Ex: Win10, Linux, ...)
WIN10
編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出)
VISUAL STUDIO 2015
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
MFC
問題(Question):
小弟在使用SQLConfigDataSource這個函式時
在32位元的環境下都會回傳true
但在64位元時都會回傳false
不知道是否有前輩可以替小弟解答
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版,禁止使用圖檔)
CString sqlAttributes;
sqlAttributes.Format("DSN=Test5? Description=Test5?
DBQ=C:\\Pdes\\test5.mdb??", m_sServerName);
sqlAttributes.Replace('?', '\0');
bResult = SQLConfigDataSource(NULL, ODBC_ADD_DSN,
"Microsoft Access Driver (*.MDB)", sqlAttributes
);
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.127.200.146
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1543974213.A.566.html
※ 編輯: asdfg1597860 (59.127.200.146), 12/05/2018 09:44:29
→
12/05 15:19,
6年前
, 1F
12/05 15:19, 1F
→
12/05 15:49,
6年前
, 2F
12/05 15:49, 2F
※ 編輯: asdfg1597860 (42.77.78.224), 12/06/2018 13:44:37
→
12/07 20:53,
6年前
, 3F
12/07 20:53, 3F
→
12/07 20:53,
6年前
, 4F
12/07 20:53, 4F
這邊我發現要自行安裝64位元的ODBC問題就解決 謝謝前輩的建議
※ 編輯: asdfg1597860 (59.127.200.146), 12/12/2018 09:39:50
討論串 (同標題文章)
C_and_CPP 近期熱門文章
11
46
PTT數位生活區 即時熱門文章