Click here to Skip to main content
16,020,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: XML DOM insertBefore() Method Pin
p_196012-Jun-09 0:45
p_196012-Jun-09 0:45 
GeneralRe: XML DOM insertBefore() Method Pin
p_196012-Jun-09 1:19
p_196012-Jun-09 1:19 
QuestionCControlBars always on top of CMDIChildWnd Pin
Niklas L11-Jun-09 23:27
Niklas L11-Jun-09 23:27 
QuestionHow to Generate a Installer in VC++??? Pin
Jayaraman K11-Jun-09 23:17
Jayaraman K11-Jun-09 23:17 
AnswerRe: How to Generate a Installer in VC++??? Pin
Cedric Moonen11-Jun-09 23:23
Cedric Moonen11-Jun-09 23:23 
QuestionRichEditCtrl display data Pin
MrKBA11-Jun-09 23:04
MrKBA11-Jun-09 23:04 
AnswerRe: RichEditCtrl display data Pin
Michael Schubert12-Jun-09 2:42
Michael Schubert12-Jun-09 2:42 
QuestionDDX and Arrays Pin
stevepqr11-Jun-09 22:32
stevepqr11-Jun-09 22:32 
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



AnswerRe: DDX and Arrays Pin
Cedric Moonen11-Jun-09 22:54
Cedric Moonen11-Jun-09 22:54 
GeneralRe: DDX and Arrays Pin
Chandrasekharan P11-Jun-09 23:03
Chandrasekharan P11-Jun-09 23:03 
GeneralRe: DDX and Arrays Pin
Caslen11-Jun-09 23:05
Caslen11-Jun-09 23:05 
AnswerRe: DDX and Arrays Pin
Chandrasekharan P11-Jun-09 23:00
Chandrasekharan P11-Jun-09 23:00 
GeneralRe: DDX and Arrays Pin
Caslen11-Jun-09 23:06
Caslen11-Jun-09 23:06 
GeneralRe: DDX and Arrays Pin
Chandrasekharan P11-Jun-09 23:08
Chandrasekharan P11-Jun-09 23:08 
AnswerRe: DDX and Arrays Pin
Ozer Karaagac11-Jun-09 23:14
professionalOzer Karaagac11-Jun-09 23:14 
GeneralRe: DDX and Arrays Pin
Caslen11-Jun-09 23:28
Caslen11-Jun-09 23:28 
GeneralRe: DDX and Arrays Pin
Ozer Karaagac11-Jun-09 23:39
professionalOzer Karaagac11-Jun-09 23:39 
GeneralRe: DDX and Arrays Pin
stevepqr12-Jun-09 0:02
stevepqr12-Jun-09 0:02 
QuestionSaving and Restoring Toolbars (Win32 SDK) Pin
signalatub11-Jun-09 22:03
signalatub11-Jun-09 22:03 
QuestionAdd support for Memory leak detection Pin
Nandu_77b11-Jun-09 20:14
Nandu_77b11-Jun-09 20:14 
AnswerRe: Add support for Memory leak detection Pin
chirag_chauhan11-Jun-09 20:46
chirag_chauhan11-Jun-09 20:46 
QuestionRe: Add support for Memory leak detection Pin
Nandu_77b11-Jun-09 21:02
Nandu_77b11-Jun-09 21:02 
AnswerRe: Add support for Memory leak detection Pin
Hamid Taebi11-Jun-09 21:32
professionalHamid Taebi11-Jun-09 21:32 
Questionsegmentation problem Pin
sandeep_dhruwa11-Jun-09 19:31
sandeep_dhruwa11-Jun-09 19:31 
AnswerRe: segmentation problem Pin
Cedric Moonen11-Jun-09 20:13
Cedric Moonen11-Jun-09 20:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.