I\'m currently trying to use OpenCV (using the Processing library). However, when I try to run any examples (either the Processing ones or the C ones included with OpenCV),
OpenCV 2.1 still has a few problems with 64bits OS. You can read this topic on the subject.
If you're looking for working/compilable source code that shows how to use the webcam, check this out.
Let us know if it helped you.