Subj : Re: Dialog boxes To : borland.public.cpp.borlandcpp From : " Bruce Salzman" Date : Thu Oct 16 2003 05:54 pm > SetMainWindow(new TFrameWindow(0, "My App", > new TDialog(0, "IDD_Dialog1" ), true)); Define an identifier (a number) for IDD_Dialog1 and pass it to the TDialog constructor (more efficient). What I do is put these resource identifiers in a .rh file that gets included in the application and the .rc file. For example, in myapp.rh #define IDD_Dialog1 100 in myapp.cpp #include "myapp.rh" .. .. .. SetMainWindow(new TFrameWindow(0, "My App", new TDialog(0, IDD_Dialog1), true)); and finally, in myapp.rc #include "myapp.rh" .. .. .. IDD_Dialog1 DIALOG 0, 0, 240, 120 .. .. .. Regards, Bruce .