Thread: Errors in Resource

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

    Errors in Resource

    I am using Cfree 5 IDE with minGW compiler.
    In my project while compiling my resource file I am getting an error

    Expected unqualified-id before numeric constant

    my resource file is coded like this

    Code:
    #define IDMAINICON			100
    
    #define IDMAIN_FILE			2100
    #define IDMAIN_FILE_NEW		2101
    #define	IDMAIN_FILE_EXIT	2102
    
    IDMAINICON ICON "SmIcon.ico"
    
    IDMAIN_FILE MENU
    BEGIN
    
    	POPUP "&File"
    		BEGIN
    			MENUITEM "&New",IDMAIN_FILE_NEW
    			
    		END
    
    
    END
    what could be the reason??
    Plz F1

  2. #2
    Registered User ledow's Avatar
    Join Date
    Dec 2011
    Posts
    435
    I'm not sure, because you don't have any line numbers in your error message, but I think the BEGIN/END inside the POPUP are incorrect. At least, according to this example:

    POPUP resource

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Is there no resource for this?
    By exoeight in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2006, 01:40 PM
  2. sys/resource.h
    By chris1985 in forum C Programming
    Replies: 2
    Last Post: 01-20-2005, 04:59 PM
  3. errors.. errrors.. more errors
    By Klinerr1 in forum C++ Programming
    Replies: 17
    Last Post: 07-23-2002, 08:43 PM
  4. resource
    By Smoose777 in forum C++ Programming
    Replies: 1
    Last Post: 04-28-2002, 11:15 AM
  5. Errors with resource bitmaps....HELP PLEASE!
    By SyntaxBubble in forum Windows Programming
    Replies: 13
    Last Post: 11-13-2001, 07:11 PM