Microsoft KB Archive/102675

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 08:28, 20 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base

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:

  1. Create a new project with App Wizard.
  2. Start App Studio.
  3. Create a new dialog box.
  4. Add an EditBox control to the dialog box.
  5. Double-click the EditBox and note that its ID is IDC_EDIT1.
  6. Choose Save All from the File menu, then exit App Studio.
  7. Restart App Studio.
  8. Open the previously-created dialog box.
  9. Double-click the same EditBox; its ID now shows as IDD_DIALOG1.

Additional query words: 1.00 1.10

Keywords: kbbug kbfix KB102675