Microsoft KB Archive/102675
Article ID: 102675
Article Last Modified on 10/24/2003
- The App Studio, when used with:
- Microsoft Visual C++ 1.0 Professional Edition
This article was previously published under Q102675
When you use App Studio to edit a dialog box created in App Wizard, the first control created may have the same ID as the dialog box. In other words, if the dialog box ID is "IDD_DIALOG1," the identifier for the first control may also appear as "IDD_DIALOG1."
App Wizard creates the dialog box ID and control ID with the same numeric value even though the symbols are different. When App Studio loads the resource file and looks for a symbol that matches the control ID, it does not exclude the dialog box ID from its search.
Because the dialog box ID and control ID have the same numeric value, this behavior should not affect your application. However, you can eliminate this behavior by editing the RESOURCE.H file to change the value of _APS_NEXT_CONTROL_VALUE from 101 to 1001 before you start App Studio.
Microsoft has confirmed this to be a bug in the products listed at the beginning of this article. This was fixed in Microsoft Visual C++ version 1.5 C++ for Windows, and Visual C++, 32-bit Edition, version 2.0.
Perform the following nine steps to demonstrate this problem:
- Create a new project with App Wizard.
- Start App Studio.
- Create a new dialog box.
- Add an EditBox control to the dialog box.
- Double-click the EditBox and note that its ID is IDC_EDIT1.
- Choose Save All from the File menu, then exit App Studio.
- Restart App Studio.
- Open the previously-created dialog box.
- Double-click the same EditBox; its ID now shows as IDD_DIALOG1.
Additional query words: 1.00 1.10
Keywords: kbbug kbfix KB102675