电缆出口需要认证吗:VC++ 中如何把一组控件连接到 一个 变量数组上。

来源:百度文库 编辑:神马品牌网 时间:2024/04/25 04:41:43
void CPictureDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPictureDlg)
DDX_Control(pDX,IDC_IMAGE0,m_Image[0]);
DDX_Control(pDX,IDC_IMAGE1,m_Image[1]);
DDX_Control(pDX,IDC_IMAGE2,m_Image[2]);
DDX_Control(pDX,IDC_IMAGE3,m_Image[3]);
DDX_Control(pDX,IDC_IMAGE4,m_Image[4]);
DDX_Control(pDX,IDC_IMAGE5,m_Image[5]);
DDX_Control(pDX,IDC_IMAGE6,m_Image[6]);
DDX_Control(pDX,IDC_IMAGE7,m_Image[7]);
DDX_Control(pDX,IDC_IMAGE8,m_Image[8]);
DDX_Control(pDX,IDC_IMAGE9,m_Image[9]);
DDX_Control(pDX,IDC_IMAGE10,m_Image[10]);
DDX_Control(pDX,IDC_IMAGE11,m_Image[11]);
DDX_Control(pDX,IDC_IMAGE12,m_Image[12]);
DDX_Control(pDX,IDC_IMAGE13,m_Image[13]);
DDX_Control(pDX,IDC_IMAGE14,m_Image[14]);
DDX_Control(pDX,IDC_IMAGE15,m_Image[15]);
DDX_Control(pDX,IDC_PREVIEW,m_Preview);
DDX_Control(pDX,IDC_HIDE,m_Hide);
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
以上是 书上的代码,直接敲进去 行不通,会进不了classwizard 而且 也没有连接上变量。
是用menber variable的话 在IDC_IMAGE0上不能连m_Image[0] 提示名称有问题,好像是不能用[0],
请各位高手帮帮看看 如何把实现书上。

首先检查苯方法,0是否写成英文O了
然后,最好通过classwiazrd进行关联