[問題] MFC 建立Custom Control問題

看板C_and_CPP (C/C++)作者 ( 啦?)時間11年前 (2014/12/17 14:51), 11年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) vs2012 win 7 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 開啟MFC dialog based project,無法使用custom control 開啟方式如下 : 1. MFC> MFC Applicatrion > http://ppt.cc/9Jl9 2. Application type : http://ppt.cc/wt5M 餵入的資料(Input): 沒有加上任何code,開啟完project後, 從tool box 拉一個custom control, 放在dialog上 就會出現錯誤 預期的正確結果(Expected Output): 可以在tool box 拉 custom control來使用... 錯誤結果(Wrong Output): log : Warning: dialog creation failed, so application is terminating unexpectedly. Warning: if you are using MFC controls on the dialog, you cannot #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS. 程式碼(Code):(請善用置底文網頁, 記得排版) 補充說明(Supplement): 查到網路上資料 http://blogs.msdn.com/b/vcblog/archive/2012/02/06/10263387.aspx With _AFX_NO_MFC_CONTROLS_IN_DIALOGS not #defined, ... standard static MFC libraries : 可使用custom control With _AFX_NO_MFC_CONTROLS_IN_DIALOGS #defined all static MFC library : 不能使用custom control 但是我 stdafx.h 裡並沒有 define "_AFX_NO_MFC_CONTROLS_IN_DIALOGS" 請問是設定或那些地方要更改嗎? >"< 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.32.89.43 ※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1418799067.A.36F.html ※ 編輯: CoronaMemory (114.32.89.43), 12/17/2014 14:53:00 ※ 編輯: CoronaMemory (114.32.89.43), 12/17/2014 14:53:40
文章代碼(AID): #1KaIVRDl (C_and_CPP)
文章代碼(AID): #1KaIVRDl (C_and_CPP)