Normally you would select a project type that corresponded to a DLL when you created the project in the first place, i.e. Class Library or Windows Control Library. If you've already created a Windows Application project then you can indeed make it compile to a DLL instead of an EXE by setting the "Application type" field on the Application tab of the project properties to "Class Library".