Thread: help with menus example?

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    84

    help with menus example?

    I am working my way through "Windows 2000 programing from the ground up" .After typing in a basic example of how to use menus (using a resource file, a header file and a main file)
    i receive an error in the header file

    : fatal error RC1004: unexpected end of file found

    this is what is in the file.


    #define IDM_OPEN 100
    #define IDM_CLOSE 101
    #define IDM_EXIT 102
    #define IDM_COLORS 103
    #define IDM_LOW 104
    #define IDM_HIGH 105
    #define IDM_FONT 106
    #define IDM_RESOLUTION 107
    #define IDM_HELP 108


    can anyone help please . I am pretty sure i type the other files correctly .

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Go to the end of the last line, and hit enter to start a new line. Then recompile.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    84
    thanks for the suggestion but that still hasnt worked . Any other suggestions.

    It is also worth note that this is the first time i have tried using a resource file in a windows program so chances are i am missing something really stupid.

    I am using MSVC++6 should my menu resource file be typed into a text file?
    Last edited by The Gweech; 03-30-2004 at 04:17 PM.

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    84
    I totaly ballsed up typing in the example and have now got it working.
    Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Win32 menus and resources help
    By firestorm in forum Windows Programming
    Replies: 24
    Last Post: 04-12-2005, 01:23 PM
  2. Creating pop up menus
    By Ti22 in forum C++ Programming
    Replies: 22
    Last Post: 01-18-2005, 09:27 PM
  3. Menu's
    By Benzakhar in forum Windows Programming
    Replies: 1
    Last Post: 02-20-2004, 10:13 PM
  4. adding menus at runtime
    By bennyandthejets in forum Windows Programming
    Replies: 3
    Last Post: 11-22-2002, 05:07 AM
  5. menus
    By iain in forum Windows Programming
    Replies: 10
    Last Post: 08-18-2001, 03:03 AM