creating a DLL

I have now a function which performs a task using CUDA. How can I create a DLL and export this function ? In other words. how to make CUDA project not a console application project but a DLL project? How to export from DLL - I know.

http://forums.nvidia.com/index.php?showtopic=83054