That happened for me when I was doing copy-paste for menu items. Very
annoying.
"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
I have seen a number of instances where this is done, but I don't
understand the
conditions under which it occurs. I've had control IDs replaced for no
discernable
reason, for example. It seems to happen only during the transformation.
I believe it is
a bug.
joe
On Fri, 12 Dec 2008 11:12:47 -0700, "L.Allan" <lynn.d.allan@gmail.com>
wrote:
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
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm