In the MFC program, how to transfer data between different dialogs?

In web development, when we want to transfer something between different pages, we can use a session to save data. But in MFC, what can we use to store these things?

Thanks!

+3
source share
2 answers

Typical MFC applications will have a Document-View-Frame architecture. Data is stored in a Document object and is accessible worldwide. You can access it through AfxGetMainWnd ().

AfxGetApp() , , Document View. , , - CWinApp .

, , , - - CWinApp, . , "ok", , . , - .

+3
+1

Source: https://habr.com/ru/post/1717890/


All Articles