看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) VC++ 2010 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) MFC 問題(Question): 使用CString的LoadString無法讀到string table新加的string進去 餵入的資料(Input): string table 預期的正確結果(Expected Output): 正確的字串 錯誤結果(Wrong Output): 會是上一個LoadString的結果 程式碼(Code):(請善用置底文網頁, 記得排版) str.LoadString(ID_PROGRAM_A); nPos = 0; str = str.Tokenize(_T("\n"),nPos); programmingToolBar.SetButtonText(programNo,str); programNo++; str.LoadString(ID_PROGRAM_B); nPos = 0; str = str.Tokenize(_T("\n"),nPos); programmingToolBar.SetButtonText(programNo,str); programNo++; ID_PROGRAM_B是新加的 讀不到 補充說明(Supplement): ID跟按鈕用同一個 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 219.87.85.162 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1460973152.A.EA5.html
Dforce: 試試看 updatewindow() 04/18 18:45
不過下中斷點 他的string確實沒有讀到ㄟ 不知道發生甚麼事 ※ 編輯: b26168 (61.231.25.92), 04/18/2016 21:45:35