VC7.1 replaces #define values with numeric constants for .rc menu items. Setting to prevent this?
- From: "L.Allan" <lynn.d.allan@xxxxxxxxx>
- Date: Fri, 12 Dec 2008 11:12:47 -0700
Summary:
The VC71 resource editor is replacing #define values with numeric constants
for the menu-items in the .rc file.
Is there a setting to prevent this? Am I doing something wrong?
More information:
* The app was originally generated from vc6's wizard.
* Changing the menu with the vc6 resource editor doesn't cause this problem.
* I've been using a text editor to make changes to the menu.
* Following are abbreviated contents of Resource.h and MyTestApp.rc
Resource.h
#define ID_TRAN_REFRESH_LIST 32860
#define ID_TRAN_CONSERVE_MEMORY 32861
MyTestApp.rc WAS:
IDR_MAINFRAME MENU DISCARDABLE // <-- Is this incorrect?
BEGIN
POPUP "MyMenuGroup"
BEGIN
MENUITEM "Conserve Memory (Slow)", ID_TRAN_CONSERVE_MEMORY
MENUITEM SEPARATOR
MENUITEM "Refresh List of Trans", ID_TRAN_REFRESH_LIST
END
AFTER using VC71 resource editor to make a change to the menu and compiling:
IDR_MAINFRAME MENUEX
BEGIN
POPUP "MmMenuGroup", 65535,MFT_STRING,MFS_ENABLED
BEGIN
MENUITEM "Conserve Memory (Slow)", 32861,MFT_STRING,MFS_ENABLED
MENUITEM MFT_SEPARATOR
MENUITEM "Refresh List of Trans", 32860, MFT_STRING,MFS_ENABLED
END
.
- Follow-Ups:
- Re: VC7.1 replaces #define values with numeric constants for .rc menu items. Setting to prevent this?
- From: Joseph M . Newcomer
- Re: VC7.1 replaces #define values with numeric constants for .rc menu items. Setting to prevent this?
- Prev by Date: Re: ComboBox DeleteItem() not being called for all items?
- Next by Date: Re: ComboBox DeleteItem() not being called for all items?
- Previous by thread: CEditView and linie numbers
- Next by thread: Re: VC7.1 replaces #define values with numeric constants for .rc menu items. Setting to prevent this?
- Index(es):
Relevant Pages
|