[問題] MFC String table 無法load到string

看板C_and_CPP (C/C++)作者 (森)時間10年前 (2016/04/18 17:52), 10年前編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
開發平台(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

04/18 18:45, , 1F
試試看 updatewindow()
04/18 18:45, 1F
不過下中斷點 他的string確實沒有讀到ㄟ 不知道發生甚麼事 ※ 編輯: b26168 (61.231.25.92), 04/18/2016 21:45:35
文章代碼(AID): #1N5AvWwb (C_and_CPP)
文章代碼(AID): #1N5AvWwb (C_and_CPP)