[問題] MFC程式碼
開發平台(Platform): Visual Studio 2010
額外使用到的函數庫(Library Used): OpenGL
問題(Question):無法使用MessageBox
無法使用CDialog為基底的函式
餵入的資料(Input):無
預期的正確結果(Expected Output):跳出訊息方塊和開啟對話框
錯誤結果(Wrong Output):
在Debug下程式碼沒有錯
在執行時程式當掉,在偵錯的地方出現,以下三行
Warning: no message line prompt for ID 0x800A.
Warning: no message line prompt for ID 0x800A.
Warning: no message line prompt for ID 0x800A.
程式碼(Code):(請善用置底文網頁, 記得排版)
//Ali a;
//if(a.DoModal()==IDOK)
//{
MessageBox(NULL,"這是一個最簡單的訊息方塊!");
//}
補充說明(Supplement): 有嘗試過重灌Visual Studio 2010
之前這樣寫都可以,有點懷疑是我的作業系統出錯。
--
※ 發信站 :批踢踢實業坊(ptt.cc)
◆ From: 140.116.71.110
→
10/15 00:02, , 1F
10/15 00:02, 1F
→
10/15 00:03, , 2F
10/15 00:03, 2F
→
10/15 00:04, , 3F
10/15 00:04, 3F
推
10/15 23:45, , 4F
10/15 23:45, 4F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章