I am trying to compile a DLL in VC++ 2010 command prompt, and one of the functions I am using is in urlmon.dll. How do I link this DLL to my source file? (It's only one .cpp file). I tried putting the dll in the same folder. Do I need the lib file instead?

Currently I'm just running:
cl -LD filename

I've tried googling, but I have had no success. Thanks for those who looked.