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. (79) : error C2059: syntax error : ')'

(79) : error C2059: syntax error : ')'

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
6 Posts 4 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.
  • T Offline
    T Offline
    TMaxwell86
    wrote on last edited by
    #1

    I must be missing something somewhere, but it isn't obvious to me with such an ambiguous error msg... I've tried every connutation of line 79 "(WindowOne ->Create(NULL,NULL,WS_CHILD,);", but none seem to help, unless I actually comment it out. Is there another section of code where I should go to make edit corrections? I've tried deleting the offending line and recompiling before retyping it back in to no avail. Any help/advice is greatly appreciated! :) The offending code........... void CSplashScreen::OnGo() { // TODO: Add your control notification handler code here CWnd *WindowOne = new CWnd; WindowOne ->Create(NULL,NULL,WS_CHILD,);//line 79 WindowOne ->ShowWindow(SW_SHOW); } Thomas

    L N M 3 Replies Last reply
    0
    • T TMaxwell86

      I must be missing something somewhere, but it isn't obvious to me with such an ambiguous error msg... I've tried every connutation of line 79 "(WindowOne ->Create(NULL,NULL,WS_CHILD,);", but none seem to help, unless I actually comment it out. Is there another section of code where I should go to make edit corrections? I've tried deleting the offending line and recompiling before retyping it back in to no avail. Any help/advice is greatly appreciated! :) The offending code........... void CSplashScreen::OnGo() { // TODO: Add your control notification handler code here CWnd *WindowOne = new CWnd; WindowOne ->Create(NULL,NULL,WS_CHILD,);//line 79 WindowOne ->ShowWindow(SW_SHOW); } Thomas

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try this CWnd* pWnd = new CStatic; pWnd->CreateEx (WS_EX_CLIENTEDGE, // Make a client edge label. _T("STATIC"), "Dialog", WS_CHILD |WS_TABSTOP | WS_VISIBLE |WS_CAPTION, 5, 5, 300, 300, m_hWnd, (HMENU)1234); m0n0

      T 1 Reply Last reply
      0
      • L Lost User

        Try this CWnd* pWnd = new CStatic; pWnd->CreateEx (WS_EX_CLIENTEDGE, // Make a client edge label. _T("STATIC"), "Dialog", WS_CHILD |WS_TABSTOP | WS_VISIBLE |WS_CAPTION, 5, 5, 300, 300, m_hWnd, (HMENU)1234); m0n0

        T Offline
        T Offline
        TMaxwell86
        wrote on last edited by
        #3

        Thanks very much! This works, and I'm sure I will be ale to put it to good use. A question regarding the use of CStatic... I want to be able to access the window produced as if it were a List box. The item choosen from this list box will be applied to a second window which will bring up the properties of the item chosen from the first window. Can I do this with the CStatic window just created? Thanks in advance, Thomas

        1 Reply Last reply
        0
        • T TMaxwell86

          I must be missing something somewhere, but it isn't obvious to me with such an ambiguous error msg... I've tried every connutation of line 79 "(WindowOne ->Create(NULL,NULL,WS_CHILD,);", but none seem to help, unless I actually comment it out. Is there another section of code where I should go to make edit corrections? I've tried deleting the offending line and recompiling before retyping it back in to no avail. Any help/advice is greatly appreciated! :) The offending code........... void CSplashScreen::OnGo() { // TODO: Add your control notification handler code here CWnd *WindowOne = new CWnd; WindowOne ->Create(NULL,NULL,WS_CHILD,);//line 79 WindowOne ->ShowWindow(SW_SHOW); } Thomas

          N Offline
          N Offline
          NadirMaroof
          wrote on last edited by
          #4

          i think u r missing a few parameters, just try this one; void CSplashScreen::OnGo() { // TODO: Add your control notification handler code here Rect rect(100,100,200,200); CWnd *WindowOne = new CWnd; WindowOne ->Create(NULL,"Window One",WS_CHILD,rect,NULL,NULL,NULL);//line 79 WindowOne ->ShowWindow(SW_SHOW); } You missed out the rectangle, and other few parameters, just try this one out. Cheers Nadir Maroof

          N 1 Reply Last reply
          0
          • N NadirMaroof

            i think u r missing a few parameters, just try this one; void CSplashScreen::OnGo() { // TODO: Add your control notification handler code here Rect rect(100,100,200,200); CWnd *WindowOne = new CWnd; WindowOne ->Create(NULL,"Window One",WS_CHILD,rect,NULL,NULL,NULL);//line 79 WindowOne ->ShowWindow(SW_SHOW); } You missed out the rectangle, and other few parameters, just try this one out. Cheers Nadir Maroof

            N Offline
            N Offline
            NadirMaroof
            wrote on last edited by
            #5

            Sorry i missed a thing, it is; CRect instead of only Rect in the declaration, now ur code should look like this; void CSplashScreen::OnGo() { // TODO: Add your control notification handler code here CRect rect(100,100,200,200); CWnd *WindowOne = new CWnd; WindowOne ->Create(NULL,"Window One",WS_CHILD,rect,NULL,NULL,NULL); WindowOne ->ShowWindow(SW_SHOW); } Hope this helps, Cheers Nadir Maroof

            1 Reply Last reply
            0
            • T TMaxwell86

              I must be missing something somewhere, but it isn't obvious to me with such an ambiguous error msg... I've tried every connutation of line 79 "(WindowOne ->Create(NULL,NULL,WS_CHILD,);", but none seem to help, unless I actually comment it out. Is there another section of code where I should go to make edit corrections? I've tried deleting the offending line and recompiling before retyping it back in to no avail. Any help/advice is greatly appreciated! :) The offending code........... void CSplashScreen::OnGo() { // TODO: Add your control notification handler code here CWnd *WindowOne = new CWnd; WindowOne ->Create(NULL,NULL,WS_CHILD,);//line 79 WindowOne ->ShowWindow(SW_SHOW); } Thomas

              M Offline
              M Offline
              Michael Dunn
              wrote on last edited by
              #6

              There's a comma between "WS_CHILD" and the right paren. --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

              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