关于MFC的控键问题

来源:百度知道 编辑:UC知道 时间:2024/05/12 11:21:54
int A;

DDX_Control(pDX, IDC_EDIT1, A);

error C2664: “DDX_Control”: 不能将参数 3 从“int”转换为“CWnd &”高手指点

CEdit A;

DDX_Control(pDX, IDC_EDIT1, A);
或者:

int A;

DDX_Text(pDX, IDC_EDIT1, A);

第三个参数必须是一个指向CWnd类的指针,INT型变量怎么可能充当CWnd类的指针呢?
是不是要问的问题没说明白??