VS6.0, C++ I have a control I need to 'interact' with, I set it up the usual way with ID = IDC_TINY1 and using ClassWizard to assign a variable CStatic m_Tiny1, as expected this gives me:- DDX_Control(pDX, IDC_TINY1, m_Tiny1); and in the header:- CStatic m_Tiny1; Now though I have 11 more identical controls and instead of having m_Tiny1, m_Tiny2, m_Tiny3 etc I think it would be better to have an array m_Tiny[12] but there seems to be no way to assign each element of the array using ClassWizard. So I decided to edit these entries manually to give me:- DDX_Control(pDX, IDC_TINY1, m_Tiny[0]); DDX_Control(pDX, IDC_TINY2, m_Tiny[1]); DDX_Control(pDX, IDC_TINY3, m_Tiny[2]); . . . DDX_Control(pDX, IDC_TINY12, m_Tiny[11]); and:- CStatic m_Tiny[12]; This appeared to work just fine until I came to edit another control using ClassWizard I then got the error:- Parsing Error: Expected ")" Input Line:"DDX_Control(pDX,IDC_TINY1,m_Tiny[0]" I'm assuming this is VS telling me I have an entry in the DDX that it didn't put there even though it quite happily will compile and run it. So to the problem: Is having array elements in DDX entries a valid thing to do? If yes then how do I do it without the error? Thanks
Apathy Rules - I suppose...
Its not the things you fear that come to get you but all the things that you don't expect