Hey all,

Are there any resource file gurus here that can help me out? I can't get a separator to compile with RC.exe (masm package resource compiler).

I have the following resource file:

-------------------------------------------------------

500 ICON MOVEABLE PURE LOADONCALL DISCARDABLE "MAINICON.ICO"

600 MENUEX MOVEABLE IMPURE LOADONCALL DISCARDABLE
BEGIN
----POPUP "&File", , , 0
----BEGIN
-------------MENUITEM "&Mute", 1001
-------------MENUITEM "&Unmute", 1002
-------------MENUITEM SEPARATOR
-------------MENUITEM "&Exit", 1000
----END
----POPUP "&Help", , , 0
----BEGIN
-------------MENUITEM "&About", 1900
----END
END

-------------------------------------------------------------

When I have RC.exe compile this, it says:

rsrc.rc (9): error RC2243 : invalid string expression at SEPARATOR
rsrc.rc (10): error RC2236 : required parameter missing

Any ideas what's wrong? Can you even get these separators to compile?
Posted on 2002-03-01 14:55:46 by Lysic
I got it. I found this in one of Iczelions' tutes...

MENUITEM "", , 0x0800 /*MFT_SEPARATOR*/

and it works.
Posted on 2002-03-01 15:08:27 by Lysic
OK, I give up. What makes it work?
Posted on 2002-03-01 19:48:17 by sceptor
sceptor,

You replace

MENUITEM SEPARATOR with

MENUITEM "", , 0x0800

Apparently, SEPARATOR was defined in one of the includes from MS as 0x0800. Great thing that Iczelion knew that!
Posted on 2002-03-01 22:45:35 by Lysic
This stuff is all defined in RESOURCE.H that comes with MASM32. You need to #include it in your .RC file. :)
Posted on 2002-03-01 22:58:38 by S/390