I have a project originally developed as a .dll project in MFC
but I want to convert this project to an .exe application. I have changed project settings as shown below but it didn't help.
Edit: Further I have changed Linker properties as Project properties -> Linker -> General -> Output file .. set to .. .Debug\DirBkgndExt.exe
When I compiled then I'm getting following error.
I googled it, and on some blogs, people are suggesting to copy paste everything from existing project to a new project of executable types. Since this project is bit huge, so that option doesn't sounds good.
What do you expect to happen here? The DLL doesn't have an entry point (well it has, but not one for a standalone application), so what should the software do when the exe is run? You need to provide a 'driver' that will start whatever you want to happen. Make a new exe application (win32 or console?), copy the 'bootstrapping' code from that into your existing application, and do stuff like initialization/argument parsing etc there.
Probably you should make separate configurations: one that builds as a dll, one that builds as exe. Then use macros to keep code that is specific to each build contained. This is what I do for libraries for which I have an embedded test/development UI.