Does anyone have suggestions for good sites that will help a beginner create a DLL?

I am trying to use mingw-msys (and have read their how to, and even tried the Petzold tome), but I am bit mystified about what I do to create for a c++ dll, what specific syntax for classes/functions I might need to use and the like.

Any help much appreciated.