I have a fairly complicated dialog that I need to map/unmap sets of controls. I didn't want to have 30+ control variables running around, so I thought I would organize things in a structure. So, in my DataExchange method, after the AFX wrappers, I have:
DDX_Control(pDX, IDC_A_11_STATIC, m_BankA.cGunType.cLabels);
DDX_Control(pDX, IDC_A_12_STATIC, m_BankA.cGunType.cLabels);
DDX_Control(pDX, IDC_A_13_STATIC, m_BankA.cGunType.cLabels);
the above is a code snippet - compiles fine. The .cLabels[n] reference a custom activeX control. Looking at this code, I would think that I have something equivalent to :
DDX_Control(pDX, IDC_A_11_STATIC, m_cLabels); // example
However, using the structure notion results in an assertion violation, while the array reference does not.
Today's question is - why? Both code snippets decompose to the same discrete variable location, or so I think...
What am I missing?