<p>With VS2005, I want to create a DLL and automatically export all symbols without adding <code>__declspec(dllexport)</code> everywhere, and without hand-creating <code>.def</code> files. Is there a way to do this?</p>

No, you will need a macro that resolves to
```
__declspec(dllexport)
```
when it's included by the .cpp file that implements the exported functions, and resolves to
```
__declspec(dllimport)
```
otherwise.