Click here to Skip to main content
15,914,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 'MAKEINTRESOURCE' - Not Working Properly [modified] Pin
David Crow18-Apr-12 5:08
David Crow18-Apr-12 5:08 
GeneralRe: 'MAKEINTRESOURCE' - Not Working Properly Pin
Richard MacCutchan17-Apr-12 7:08
mveRichard MacCutchan17-Apr-12 7:08 
Question[SOLVED] Accelerator key issue Pin
David Crow16-Apr-12 6:13
David Crow16-Apr-12 6:13 
AnswerRe: Accelerator key issue Pin
jkirkerx17-Apr-12 6:50
professionaljkirkerx17-Apr-12 6:50 
GeneralRe: Accelerator key issue Pin
David Crow17-Apr-12 7:44
David Crow17-Apr-12 7:44 
GeneralRe: Accelerator key issue Pin
jkirkerx17-Apr-12 8:30
professionaljkirkerx17-Apr-12 8:30 
GeneralRe: Accelerator key issue Pin
David Crow17-Apr-12 9:31
David Crow17-Apr-12 9:31 
GeneralRe: Accelerator key issue Pin
jkirkerx17-Apr-12 10:02
professionaljkirkerx17-Apr-12 10:02 
I created a Win32 non empty test project in VS2008 and it worked fine. I hand edited the rc file, and added \t Alt-F5 to Exit in the File Column.

I doubt if this is of any help, but this is my rc file content from the test project. Perhaps there's something in there you don't have. I'm sure it's the \t that's terminating the menu item value, just not sure why.

//Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#ifndef APSTUDIO_INVOKED
#include "targetver.h"
#endif
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE 9, 1
#pragma code_page(1252)

/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.

IDI_MENUTESTDELETE       ICON         "MenuTestDelete.ico"
IDI_SMALL               ICON         "small.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDC_MENUTESTDELETE MENU
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "E&xit\t Alt-F5",       IDM_EXIT
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "&About ...",           IDM_ABOUT
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDC_MENUTESTDELETE ACCELERATORS
BEGIN
    "?",            IDM_ABOUT,              ASCII,  ALT
    "/",            IDM_ABOUT,              ASCII,  ALT
END


/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOGEX 0, 0, 170, 62
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About MenuTestDelete"
FONT 8, "MS Shell Dlg"
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,14,14,21,20
    LTEXT           "MenuTestDelete, Version 1.0",IDC_STATIC,42,14,114,8,SS_NOPREFIX
    LTEXT           "Copyright (C) 2012",IDC_STATIC,42,26,114,8
    DEFPUSHBUTTON   "OK",IDOK,113,41,50,14,WS_GROUP
END

/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 163
        TOPMARGIN, 7
        BOTTOMMARGIN, 55
    END
END
#endif    // APSTUDIO_INVOKED

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE
BEGIN
	"#ifndef APSTUDIO_INVOKED\r\n"
    "#include ""targetver.h""\r\n"
    "#endif\r\n"
    "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "#include ""windows.h""\r\n"
    "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "\0"
END

3 TEXTINCLUDE
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE
BEGIN
   IDC_MENUTESTDELETE   "MENUTESTDELETE"
   IDS_APP_TITLE       "MenuTestDelete"
END

#endif
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

GeneralRe: Accelerator key issue Pin
David Crow17-Apr-12 17:47
David Crow17-Apr-12 17:47 
GeneralRe: Accelerator key issue Pin
jkirkerx17-Apr-12 18:23
professionaljkirkerx17-Apr-12 18:23 
GeneralRe: Accelerator key issue Pin
David Crow18-Apr-12 2:04
David Crow18-Apr-12 2:04 
GeneralRe: Accelerator key issue Pin
jkirkerx18-Apr-12 6:27
professionaljkirkerx18-Apr-12 6:27 
GeneralRe: Accelerator key issue Pin
David Crow18-Apr-12 7:11
David Crow18-Apr-12 7:11 
GeneralRe: Accelerator key issue Pin
jkirkerx18-Apr-12 8:48
professionaljkirkerx18-Apr-12 8:48 
QuestionHow do I include code in debug build but exclude from release build? Pin
pdC++16-Apr-12 5:25
pdC++16-Apr-12 5:25 
AnswerRe: How do I include code in debug build but exclude from release build? Pin
Albert Holguin16-Apr-12 5:29
professionalAlbert Holguin16-Apr-12 5:29 
AnswerRe: How do I include code in debug build but exclude from release build? Pin
pdC++16-Apr-12 8:03
pdC++16-Apr-12 8:03 
Questionvs 2008 to vs2010 Pin
columbos1492716-Apr-12 3:57
columbos1492716-Apr-12 3:57 
AnswerRe: vs 2008 to vs2010 Pin
Pete O'Hanlon16-Apr-12 4:07
mvePete O'Hanlon16-Apr-12 4:07 
AnswerRe: vs 2008 to vs2010 Pin
Albert Holguin16-Apr-12 4:41
professionalAlbert Holguin16-Apr-12 4:41 
GeneralRe: vs 2008 to vs2010 Pin
Binu MD16-Apr-12 21:09
Binu MD16-Apr-12 21:09 
GeneralRe: vs 2008 to vs2010 Pin
Richard MacCutchan16-Apr-12 22:05
mveRichard MacCutchan16-Apr-12 22:05 
GeneralRe: vs 2008 to vs2010 Pin
Pete O'Hanlon16-Apr-12 22:06
mvePete O'Hanlon16-Apr-12 22:06 
GeneralRe: vs 2008 to vs2010 Pin
Binu MD17-Apr-12 15:28
Binu MD17-Apr-12 15:28 
Answerjust for info Pin
Nelek17-Apr-12 14:19
protectorNelek17-Apr-12 14:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.