[問題] 有關GetDlgItem問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
MFC
問題(Question):
我有兩個對話盒:甲、乙
主對話盒(甲)中還包含屬性分頁(Property Page)
其中A分頁有Text Control
當我按下主對話盒(甲)中的一個button
乙對話盒會出現!裡面有edit control
然後當修改儲存後
希望可以更改
主對話盒(甲)中的Text Control
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
cp.GetDlgItem(IDC_INFO_5)->SetWindowText("Device 0");
這是出錯的程式碼行
會跳出一式窗說:An invalid argument was encountered
可否請問何解?
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.128.90.1
→
02/09 20:49, , 1F
02/09 20:49, 1F
→
02/10 08:54, , 2F
02/10 08:54, 2F
→
02/10 19:32, , 3F
02/10 19:32, 3F
→
02/11 13:46, , 4F
02/11 13:46, 4F
→
02/11 13:46, , 5F
02/11 13:46, 5F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章