Click here to Skip to main content
15,918,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Pin
simon wan6-May-05 15:59
simon wan6-May-05 15:59 
GeneralRe: CString Pin
ThatsAlok6-May-05 21:33
ThatsAlok6-May-05 21:33 
GeneralEmbeded Executable Resource Pin
zx2c46-May-05 15:15
zx2c46-May-05 15:15 
GeneralRe: Embeded Executable Resource Pin
Gary R. Wheeler8-May-05 4:34
Gary R. Wheeler8-May-05 4:34 
GeneralRe: Embeded Executable Resource Pin
Gary R. Wheeler8-May-05 4:39
Gary R. Wheeler8-May-05 4:39 
GeneralCFileDialog customization Pin
Anonymous6-May-05 14:09
Anonymous6-May-05 14:09 
GeneralRe: CFileDialog customization Pin
Jaime Olivares6-May-05 15:23
Jaime Olivares6-May-05 15:23 
GeneralVC++ 6.0 Class Wizard parsing problem Pin
humots6-May-05 13:36
humots6-May-05 13:36 
I am updating a Visual C++ program's GUI, and I am getting some parsing errors from by the Visual C++ class wizard for one of the classes.

One of the parsing errors has the following form:

In file WizardDlg.h, I have

// Dialog Data
//{{AFX_DATA(CWizardDlg)
enum { IDD = IDD_WIZARD_DIALOG };
CButton m_button[3];
//}}AFX_DATA

In file WizardDlg.cpp, I have:

void CWizardDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CWizardDlg)
DDX_Control(pDX, IDC_BUTTON3, m_button[0]);
DDX_Control(pDX, IDC_BUTTON2, m_button[1]);
DDX_Control(pDX, IDC_BUTTON1, m_button[2]);
//}}AFX_DATA_MAP
}

The code compiles, but I get the class wizard parsing error

Parsing error: Expected ";".
Input Line: "CButton m_button[3];"

I know one way to fix this error: replace the array with three separate CButton m_button instances, i.e.

CButton m_button1;
CButton m_button2;
CButton m_button3;

DDX_Control(pDX, IDC_BUTTON1, m_button1);
DDX_Control(pDX, IDC_BUTTON2, m_button2);
DDX_Control(pDX, IDC_BUTTON3, m_button3);

However, I may not be able to use this approach without changing a lot of code. Is there a way to make the parser accept the CButton m_button[3] array, or something like it?

This is an important project for work, so any advice would be greatly appreciated.
GeneralRe: VC++ 6.0 Class Wizard parsing problem Pin
Gary R. Wheeler8-May-05 4:43
Gary R. Wheeler8-May-05 4:43 
Generalno scroll clock display Pin
knapak6-May-05 12:04
knapak6-May-05 12:04 
GeneralRe: no scroll clock display Pin
khan++6-May-05 19:45
khan++6-May-05 19:45 
GeneralRe: no scroll clock display Pin
Ravi Bhavnani7-May-05 4:02
professionalRavi Bhavnani7-May-05 4:02 
Question24 bit DIB has different values on PPC and Desktop PC? Pin
georgiek506-May-05 11:52
georgiek506-May-05 11:52 
AnswerRe: 24 bit DIB has different values on PPC and Desktop PC? Pin
Chris Losinger7-May-05 6:40
professionalChris Losinger7-May-05 6:40 
QuestionAre their any comment plugins for vs.net to help c++? Pin
FocusedWolf6-May-05 11:46
FocusedWolf6-May-05 11:46 
AnswerRe: Are their any comment plugins for vs.net to help c++? Pin
FocusedWolf6-May-05 12:02
FocusedWolf6-May-05 12:02 
GeneralRe: Are their any comment plugins for vs.net to help c++? Pin
Gary R. Wheeler8-May-05 4:49
Gary R. Wheeler8-May-05 4:49 
GeneralHeap error when init'ing AcDbDatabase Pin
Ista6-May-05 11:34
Ista6-May-05 11:34 
Questioncan u terminate the dos window? Pin
includeh106-May-05 11:20
includeh106-May-05 11:20 
AnswerRe: can u terminate the dos window? Pin
CodeBeetle8-May-05 9:50
CodeBeetle8-May-05 9:50 
GeneralWin. Task Manager question for VC++. HELP! Pin
6-May-05 9:55
suss6-May-05 9:55 
GeneralRe: Win. Task Manager question for VC++. HELP! Pin
Blake Miller6-May-05 10:12
Blake Miller6-May-05 10:12 
GeneralRe: Win. Task Manager question for VC++. HELP! Pin
Member 6674686-May-05 10:26
Member 6674686-May-05 10:26 
GeneralRe: Win. Task Manager question for VC++. HELP! Pin
Blake Miller6-May-05 10:40
Blake Miller6-May-05 10:40 
GeneralIntegrating a VC++ project with Windows XP Pin
Anonymous6-May-05 9:38
Anonymous6-May-05 9:38 

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.