At the very least you'll need a driver for the Sanyo LCD TV loaded onto your Compaq. Look at the Sanyo website for the driver. If it's not there I rather think you're stuck.
I have a Relysis LCD TV and I did download the driver from their website. I was able to use the cable supplied with the TV (VGA connections either end). It worked well.