The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: xellos on November 02, 2010, 08:37:11 PM

Title: iczelion tut 9 menu wont show
Post by: xellos on November 02, 2010, 08:37:11 PM
i think there is a error in his code because the menu wont show
Title: Re: iczelion tut 9 menu wont show
Post by: dedndave on November 02, 2010, 09:36:34 PM
it may be - there are a few small bugs in Iczelion's tutorials
good experience to debug it, too   :U
Title: Re: iczelion tut 9 menu wont show
Post by: ramguru on November 02, 2010, 09:39:54 PM
I think he didn't compile resource script  :8)
Title: Re: iczelion tut 9 menu wont show
Post by: GregL on November 02, 2010, 10:02:37 PM
How many thousands of people have been through Iczelion's Tutorials?  It's funny how people never think it could be their fault.
Title: Re: iczelion tut 9 menu wont show
Post by: jj2007 on November 02, 2010, 10:41:05 PM
Quote from: ramguru on November 02, 2010, 09:39:54 PM
I think he didn't compile resource script  :8)

Xellos,
The example requires a resource file with the following text. Call it rsrc.rc, and check if your IDE has something called "build with resources" or similar.
#define IDM_HELLO 1
#define IDM_CLEAR 2
#define IDM_GETTEXT 3
#define IDM_EXIT 4

FirstMenu MENU
{
POPUP "&Test Controls"
        {
         MENUITEM "Say Hello",IDM_HELLO
         MENUITEM "Clear Edit Box",IDM_CLEAR
         MENUITEM "Get Text", IDM_GETTEXT
         MENUITEM SEPARATOR
         MENUITEM "E&xit",IDM_EXIT
        }
}