Knowledge Base

BUG: Editing Compiled Resource Causes Them to Disappear

PSS ID Number: 193217

Article Last Modified on 10/15/2002


The information in this article applies to:


This article was previously published under Q193217

SYMPTOMS

Strings in a combo box disappear when the executable is opened as a resource in Visual Studio.

RESOLUTION

Place all strings in a string table and dynamically load string resources.
  1. From the File menu, select Open.
  2. In the Open dialog box, in the Open as dropdown, select Resources.
  3. Browse to the executable file (.exe, .dll, etc.) you wish to open and click OK.
  4. In the resource editor's tree view which appears, right-click the top node. Select Properties.
  5. Select the Enable MFC features check box .
You may now open combo boxes with string data and edit them using the Resource Editor.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a MFC dialog-based application.
  2. Add values to the combo box (String 1, String 2, String 3). To add strings:
    1. Click Properties on the combo box menu.
    2. Click the Data tab.
    3. Enter data in box.
    NOTE: Each data entry must be followed by CTRL+ENTER to separate the items.

  3. Build the exe.
  4. Open the exe as a resource.
  5. Save the exe.
  6. Run the exe and click the drop down.
RESULTS: The values have disappeared.

Additional query words: combobox dropdown

Keywords: kbBug kbide kbResource KB193217
Technology: kbAudDeveloper kbVC32bitSearch kbVC500 kbVC500Search kbVC600 kbVCNET kbVCsearch