For general use, I'd recommend Screen VidShot. It captures desktop and records sounds.
For gaming, most people use Fraps, but the output files it creates are really huge
It creates them uncompressed for maximum quality, but you can easily use Virtual Dub (which is also free) to compress the videos to your favourite format and resolution, including DivX.
~Sol