Using a Dialog Box in a c++ dll project -


I want to add a dialog box to a C + + DLL application. First of all, I would like to know that this is possible and later how can I compile the project.

When I set the "using the MFC standard library" configuration, I receive an error: Critical Error C1189: #Tur: Building with MDC / MD [D] (CRT DLL version) Requires the MFC shared DLL version. Please do not use #define _AFXDLL or MD / DD [D]

When I set up a configuration using MFC in a shared dll file, I get an error: General error c101008a: Updated in file Failed to save the manifest ". \ Debug \ RenameDLL.dll.embed.manifest" false parameter.

Any suggestions how to deal with this? I also use the windows.h library.

Yes, it is definitely possible, and "use MFCs in a shared DLL"

If you have headers on, you will have a stdafx.h in your project that contains various #include & lt; Afx ... & gt; These are the required MFC headers to include.

Your second error I suspect that with rebuilding Another problem is that you can not have anything after calling> DiModal () in your situation of that frequency AFX_MANAGE_STATE (AfxGetStaticModuleState ()) before DoModal ()

Comments