Check out Creating a simple DLL article. That will help you to get things moving.