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