how can I get the exe's theApp in a regular mfc dll?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
My project has two modules, one is mfc exe, the other one is a mfc regular dll. Now I'd like to get the CWinApp* pointer of the exe in a exported function of the dll. Can I use some kind of AfxGet...App/Module() to do that?
-
My project has two modules, one is mfc exe, the other one is a mfc regular dll. Now I'd like to get the CWinApp* pointer of the exe in a exported function of the dll. Can I use some kind of AfxGet...App/Module() to do that?
Hi, U can use AfxGetApp to get a pointer to the Main application thanks, Nitheesh