If you’re on Windows 7, make sure you install this:
You might need to reboot afterwards, but that’s usually all it takes. Double check that you don’t have AntiVirus software preventing access to the camera, and if it’s still not working after that, let us know.