Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Class wizard problem

Class wizard problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpjsonquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    heavenode
    wrote on last edited by
    #1

    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?

    M N H 3 Replies Last reply
    0
    • H heavenode

      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?

      M Offline
      M Offline
      MailtoGops
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • H heavenode

        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?

        N Offline
        N Offline
        nguyenvhn
        wrote on last edited by
        #3

        I think the code line would be: if (m_hCloas == INVALID_HANDLE_VALUE)

        1 Reply Last reply
        0
        • H heavenode

          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?

          H Offline
          H Offline
          heavenode
          wrote on last edited by
          #4

          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); }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups