Thread: Unknown Errors!

  1. #1
    Infant of C
    Join Date
    May 2010
    Location
    Karachi, Pakistan
    Posts
    118

    Unknown Errors!

    this is the code
    Code:
    IDDIALOG_NEW_1 DIALOG DISCARDABLE 0,0,500,500
    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU  //error generates here
    CAPTION "New"
    FONT 8, "MS Sans Serif"
    BEGIN
     DEFPUSHBUTTON "&Next",IDNEW_NEXT,495 ,300 ,10,9
    END
    the compiler is generating a error

    [Error] D:\PROGRA~1\C-FREE~1\mingw\bin\windres.exe: C:\\DOCUME~1\\OKCOMP~1\\Desktop\\Project\\SMARTS~1 \\smsrcs.rc:27: syntax error

    I dont know where the syntax is wrong. plz help me

  2. #2
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    Which line is line 27?

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If it's only 27 lines to the first error, then post all the lines up to that point.

    The real problem might be on line 20.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Infant of C
    Join Date
    May 2010
    Location
    Karachi, Pakistan
    Posts
    118
    well I have mentioned in the code that the this line generates error.
    in addition I am posting the whole script
    Code:
    #include "smsrc.h"
    
    //these are resource scripts
    
    IDMAIN_MENU MENU
    BEGIN
    
    	POPUP "&File"
    		BEGIN
    			MENUITEM "&New",IDMAIN_FILE_NEW
    			MENUITEM "&Save",IDMAIN_FILE_SAVE
    			MENUITEM "E&xit",IDMAIN_FILE_EXIT			
    		END
    	POPUP "&View"
    		BEGIN
    		END
    	POPUP "&Help"
    		BEGIN
    			MENUITEM "&About",IDMAIN_HELP_ABOUT
    			MENUITEM "He&lp",IDMAIN_HELP_HELP
    		END
    END
    
    IDMAINICON ICON "SmIcon.ico"
    
    IDDIALOG_NEW_1 DIALOG DISCARDABLE 0,0,500,500
    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU//this is line 27
    CAPTION "New"
    FONT 8, "MS Sans Serif"
    BEGIN
     DEFPUSHBUTTON "&Next",IDNEW_NEXT,495 ,300 ,10,9
    END
    line no 27 is STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
    Last edited by C_programmer.C; 01-10-2012 at 06:24 AM.

  5. #5
    Infant of C
    Join Date
    May 2010
    Location
    Karachi, Pakistan
    Posts
    118
    OHHHHH!!!!
    Shoot this!

    Thanx guys, the problem is solved.
    I only forgot to include windows.h

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Assistance with unknown errors?
    By westside222 in forum C++ Programming
    Replies: 9
    Last Post: 11-13-2009, 09:00 PM
  2. Unknown Knowledges..
    By ozumsafa in forum Tech Board
    Replies: 3
    Last Post: 09-20-2007, 12:58 PM
  3. unknown errors (to me at least)
    By bcraig in forum C++ Programming
    Replies: 4
    Last Post: 11-18-2004, 10:19 PM
  4. Unknown bug
    By naruto in forum Windows Programming
    Replies: 1
    Last Post: 06-26-2004, 08:05 AM
  5. Unknown Errors in simple program
    By neandrake in forum C++ Programming
    Replies: 16
    Last Post: 04-06-2004, 02:57 PM