积极答复者
error C2664: “DDX_Control”: 不能将参数 3 从“bool”转换为“CWnd &”

问题
答案
-
你好:
DDX_Control 的第三个参数必须是CWnd类的对话框、 窗体视图或到指定的控件相关的控件视图对象的成员变量的引用。具体请看MSDN文档:http://msdn.microsoft.com/en-us/library/z04ab59a.aspx 而DDX_Text 的第三个参数能用的类型有BYTE、int、short、UINT、COleCurrency 、COleDateTime、float、CString等字符类型。具体请看: http://msdn.microsoft.com/en-us/library/a1xttfdt.aspx 所以你用bool型的参数会报错。
Shu Hu
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
全部回复
-
你好:
DDX_Control 的第三个参数必须是CWnd类的对话框、 窗体视图或到指定的控件相关的控件视图对象的成员变量的引用。具体请看MSDN文档:http://msdn.microsoft.com/en-us/library/z04ab59a.aspx 而DDX_Text 的第三个参数能用的类型有BYTE、int、short、UINT、COleCurrency 、COleDateTime、float、CString等字符类型。具体请看: http://msdn.microsoft.com/en-us/library/a1xttfdt.aspx 所以你用bool型的参数会报错。
Shu Hu
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.