Search code examples
visual-studiowinapiresourcesrc

C++ resource syntax error


I have a resource:

IDC_MYMENU MENU
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "E&xit"
    END
    POPUP "&Stuff"
    BEGIN
        MENUITEM "&Go"
    END
END

On the first END it says there is a syntax error, I don't understand why. Anyone know? :(


Solution

  • The problem is that you haven't set the ID for the MENUITEM. The resource compiler expects additional parameter after the string. See documentation here: http://msdn.microsoft.com/en-us/library/aa381025%28VS.85%29.aspx