Including Dialogs in an Application

When you save a dialog or dialogs, the editor normally creates three files:

The .DLG and .H files are used to integrate the current dialogs into your application.

By default, the editor uses the same base name for all three files. Thus, if you use the editor's suggested default name of DIALOGS, the editor writes DIALOGS.RES, DIALOGS.DLG, and DIALOGS.H.

    To include dialogs in your application
  1. Use #include statements to include DIALOGS.H and DIALOGS.DLG in your application's resource script (.RC) file. Place the DIALOGS.H statement before the DIALOGS.DLG statement.
    #include "dialogs.h"
    #include "dialogs.dlg"
     
  2. Include DIALOGS.H in your source code.
  3. Write a dialog procedure for each dialog to initialize controls and process their messages.
  4. Compile your source code.
  5. Use the Resource Compiler to compile the .RC file into the application's .RES file.
  6. Link the .RES file into your application's .EXE file.