Microsoft KB Archive/193217

= 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:


 * Microsoft Visual C++, 32-bit Enterprise Edition 5.0
 * Microsoft Visual C++, 32-bit Enterprise Edition 6.0
 * Microsoft Visual C++, 32-bit Professional Edition 5.0
 * Microsoft Visual C++, 32-bit Professional Edition 6.0
 * Microsoft Visual C++, 32-bit Learning Edition 6.0
 * Microsoft Visual C++ .NET (2002)

-



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.



Steps to Reproduce Behavior
 Create a MFC dialog-based application. Add values to the combo box (String 1, String 2, String 3). To add strings:  Click Properties on the combo box menu. Click the Data tab. Enter data in box.</ol>

NOTE: Each data entry must be followed by CTRL+ENTER to separate the items.

</li> Build the exe.</li> Open the exe as a resource.</li> Save the exe.</li> Run the exe and click the drop down.</li></ol>

RESULTS: The values have disappeared.

Additional query words: combobox dropdown

Keywords: kbBug kbide kbResource KB193217

Technology: kbAudDeveloper kbVC32bitSearch kbVC500 kbVC500Search kbVC600 kbVCNET kbVCsearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2003 Microsoft Corporation. All rights reserved.