[問題] C++ 用ADO連資料庫出現指標不正確

作者: Kanyahi (狼爵々)   2016-04-28 10:44:56
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Windows + VC6
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
已載入msado15.dll
問題(Question):
傳入的資料(Input):
如果szOpt為-1 表示清除資料
不然就將傳入的參數新增一筆資料行
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
在執行到
m_pConnection->Execute(connString,NULL,adCmdText);
的時候會出現指標不正確的錯誤訊息
程式碼(Code):(請善用置底文網頁, 記得排版)
http://pastie.org/pastes/10815878/text
補充說明(Supplement):
不好意思 要再麻煩各位先進了
還請不吝指教,謝謝
如果有違反版規的地方,經告知後會立即修正

Links booklink

Contact Us: admin [ a t ] ucptt.com