Unknown Errors!

This is a discussion on Unknown Errors! within the Windows Programming forums, part of the Platform Specific Boards category; 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 ...

  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,262
    Which line is line 27?

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,417
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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 05: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, 08: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, 09: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21