Home > Software engineering >  Each prawn, MFC Dlg and App what's the difference?
Each prawn, MFC Dlg and App what's the difference?

Time:10-01

Each prawn, MFC Dlg and App what's the difference?
On the usage scenario is there any difference?
When using Dlg, when using the App?

CodePudding user response:

App specific don't know what you said is what,,

Have an app in the MFC class, and he is a class project, a global instantiation, theApp you can understand for the entire project as an example, it overrides the entry function, all Windows what of, is instantiated in this class,

DLG is a dialog is a window, a program (app) may not have window, may also have a lot of window, depends on how you design, window is essentially the same, but you can be divided into general window on the appearance and dialog,

CodePudding user response:

The effect of two kind of entirely different, the app is equal to the equivalent of initialization procedure, set up a message loop, window class implements the function of the window
Each program must have one and only one app class, but the program is not necessarily to window class!!!!!!

CodePudding user response:

App class now almost have a large frame, an android Application, Qt QApplication, these globally unique App class function the same, nothing is to be a global initialization and data sharing between classes, etc.,

CodePudding user response:

A from the CW 'I' nApp (Ex) class derivation, application class, a dialog box class, from CDialog (Ex) derived, general and window binding together,
  • Related