This is my resource file for a program:

#include "resource.h"

//
IDR_MYMENU MENU

BEGIN
    
  POPUP "&File" //<=error is here
    BEGIN
      MENUITEM "&Refresh", ID_PROG_REFRESH
      MENUITEM "E&xit", ID_FILE_EXIT
    END

  POPUP "&Edit"
    BEGIN
      MENUITEM "&Options", ID_PROG_OPTIONS
    END

  POPUP "&About"
    BEGIN
      MENUITEM "A&bout AC", ID_PROG_ABOUT
    END

END

I've Checked the above over and over again, but can't seem to find a problem with it, but I keep getting an error message from Dev-Cpp: [Resource error] syntax error Could anyone point out how and where this goes wrong?

Thanks

Hey buddy why did you write it in c++ forum? You don't understand difference between c++ & shell scripting ?

Hey buddy why did you write it in c++ forum? You don't understand difference between c++ & shell scripting ?

This is a part of my c++ project, all it is a resource(a file defining something like a menu,here) and I just wanted to know why Dev-cpp turned this up as an error, when I can't see why. My C++ program is Win-32 API based and this is the simplest method for creating a menu.

If you want to know how this is connected, see this site

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.