I just bought a DVI to HDMI cable to but I only get a black screen on my TV.

Do I need some special software or did I do something wrong? I put the DVI plug into my computer and the HDMI plug into my TV.