PRB: DIALOG.EXE Reads Compiled .RES Files, Not .DLG Files

Last reviewed: November 2, 1995
Article ID: Q40958
The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) for Windows versions 3.1 and 3.0
  • Microsoft Win32 SDK, versions 3.1 and 3.5

SYMPTOMS

Create a dialog box using DIALOG.EXE, the Dialog Editor. From MS-DOS, change an attribute (for example, position of control) of the dialog box by modifying the .DLG file produced by DIALOG.EXE. Invoke DIALOG.EXE again, the changes that were made are not evident.

CAUSE

The Dialog Editor produces .DLG and .RES files for the dialog box created. When using the Dialog Editor to modify an existing dialog box, the Dialog Editor will look at the .RES file for information about the makeup of the dialog box. The .DLG file is completely ignored at this point. This is why the Dialog Editor does not recognize any .DLG changes.

RESOLUTION

For the modifications to be recognized, the Resource Compiler (RC) must be used with the -r switch to compile the .DLG file. The new .RES file can then be loaded into the Dialog Editor and the changes will be recognized.


Additional reference words: 3.00 3.10 3.50
KBCategory: kbtool kbprg kbprb
KBSubcategory: TlsDlg


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.