Class wizard problem
-
I have problem opening the class wizard, as it will show an error message. After clicking ok, i wont be able to add function, variable etc. from the class wizard. error msg: Parsing error: Expected "=" Input Line: "if (m_hCloas == INVALID HANDLE VALUE)" Anyone knows what has gone wrong?
-
I have problem opening the class wizard, as it will show an error message. After clicking ok, i wont be able to add function, variable etc. from the class wizard. error msg: Parsing error: Expected "=" Input Line: "if (m_hCloas == INVALID HANDLE VALUE)" Anyone knows what has gone wrong?
I think you have deleted the script generated by the application wizard(Basically a C++ comment lines(Statrs with /// which is used by the App wizard). Try to look at the similar code in other files or create a temporary project and copy those scripts.. I have to be carefull while doing this.. I don't think there any other options... Wish you better luck :) " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
I have problem opening the class wizard, as it will show an error message. After clicking ok, i wont be able to add function, variable etc. from the class wizard. error msg: Parsing error: Expected "=" Input Line: "if (m_hCloas == INVALID HANDLE VALUE)" Anyone knows what has gone wrong?
-
I have problem opening the class wizard, as it will show an error message. After clicking ok, i wont be able to add function, variable etc. from the class wizard. error msg: Parsing error: Expected "=" Input Line: "if (m_hCloas == INVALID HANDLE VALUE)" Anyone knows what has gone wrong?
thanks, i found out the problem, it lies inside the constructor. the problem is solved after i removed the 'if section' code. does it mean i cant have an if statement inside constructor??? CTAMADlg::CTAMADlg(CWnd* pParent /*=NULL*/) : CDialog(CTAMADlg::IDD, pParent) { //{{AFX_DATA_INIT(CTAMADlg) m_hDevice = INVALID_HANDLE_VALUE; m_hClose = INVALID_HANDLE_VALUE; m_hClose = CreateEvent (NULL, TRUE, FALSE, NULL); if ( m_hClose == INVALID_HANDLE_VALUE ) { MessageBox("Thread event error!","Error",MB_OK); } //}}AFX_DATA_INIT m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); }