If you are using visual stdio 6.0. Follow this link
http://www.codeproject .com/KB/DLL/XDllPt1.aspx
it explains step by step procedure to create and access the dll using visual c++ (with pictures)....