Dude you need to get a usb/firewire audio interface. There aree some good cheap ones out there under 100 quid if your looking to record your guitar into cubase.
Latency is terrible if you tdo the input that you have done. I bet up play a note and ten minutes later you here it through you speakers.
Hope this helps