VC++ Win32 project in .NET solution compiles as an .EXE file rather than .DLL
Posted on 2006-06-17
I have a .NET solution consisting of a VB.NET Add-In project, a VC++.NET Win32 project which I'm using to store an image for my Add-In in a resource file and the Setup project for this solution.
I opened the VC++.NET's project properties window and changed its "Configuration Type" from "Application (exe)" (which was the default value when I added this projecvt to my solution) to "Dynamic Library (dll)" which is the format I need for my Add-In.
However, to my surprise, every time I compile this project I get an .EXE file instead of a .DLL file!!! I've changed the above property to a lot of different options out of curiosity and it always created the expected output format except for... DLL!!!
I tried to test this behaviour in a few test projects, and it looked like I was playing the lottery... One tested project worked and the output was DLL while a few others stuck with .EXE even if the selected "Configuration Type" was "Dynamic Library (dll)" rather than "Application (exe)"!!!
Then, when I compile my solution (the add-in, resource file project and the setup project) at a certain point I'm getting the error message "Microsoft (R) Visual Studio registry capture utility has encountered a problem and needs to close".
If I close this message box by pressing its OK button, the setup carries on as nothing happened and compiles all three projects successfully!!!
Could anyone help?