Skip to main content
GameDev.net gamedev.net
🔒 Locked

No Resources

Started by GuitarPlayer0912 Aug 14, 2006 at 3:31 PM 0 replies 350+ views
Original Post
GuitarPlayer0912
GuitarPlayer0912
I'm making a menu for my 2d level editor, and it's worked before, but I had to restart the project. Now this time around, whenever I add my .rc file to my project, I get this error warning: `-x c' after last input file has no effect no resources anybody have any idea what that means? I have my Resource.h file with all the resource definitions, and the .rc file has no syntax errors. Resource.h

#pragma once

#define ID_MENU 100

#define FILE_NEWMAP    200
#define FILE_OPENMAP   201
#define FILE_CLOSEMAP  202
#define FILE_SAVE      203
#define FILE_SAVEAS    204
#define FILE_EXIT      205

#define EDIT_UNDO      300
#define EDIT_REDO      301
#define EDIT_CUT       302
#define EDIT_COPY      303
#define EDIT_PASTE     304
#define EDIT_DELETE    305

#define MAP_CLEAR      400
#define MAP_PROPERTIES 401

#define HELP_ABOUT     500
#define HELP_HELP      501

RPG Map Editor.rc

#include <windows.h>
#include "Resource.h"

ID_MENU MENU

BEGIN
  POPUP "&File"
  BEGIN
    MENUITEM "&New Map\tCtrl-N",        FILE_NEWMAP
    MENUITEM "&Open Map\tCtrl-O",       FILE_OPENMAP
    MENUITEM "&Close Map\tCtrl-W",      FILE_CLOSEMAP
    MENUITEM SEPARATOR
    MENUITEM "&Save\tCtrl-S",           FILE_SAVE
    MENUITEM "Save &As",                FILE_SAVEAS
    MENUITEM SEPARATOR
    MENUITEM "E&xit\tAlt-F4",           FILE_EXIT
  END
  POPUP "&Edit"
  BEGIN
    MENUITEM "&Undo\tCtrl-Z",           EDIT_UNDO
    MENUITEM "&Redo\tCtrl-Y",           EDIT_REDO
    MENUITEM SEPARATOR
    MENUITEM "Cu&t Section\tCtrl-X",    EDIT_CUT
    MENUITEM "&Copy Section\tCtrl-C",   EDIT_COPY
    MENUITEM "&Paste Section\tCtrl-V",  EDIT_PASTE
    MENUITEM "&Delete Section\tDelete", EDIT_DELETE
  END
  POPUP "⤅"
  BEGIN
    MENUITEM "&Clear",                  MAP_CLEAR
    MENUITEM "&Properties",             MAP_PROPERTIES
  END
  POPUP "&Help"
  BEGIN
    MENUITEM "&About",                  HELP_ABOUT
    MENUITEM "&Help",                   HELP_HELP
  END
END

GuitarPlayer0912
GuitarPlayer0912
Never mind, found out that resource (.rc) files can't have any spaces in the filename. Works fine now.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.