starwars.com gave an explaination a long time ago about this issue. i don't know if its still on their web page. it said that vader didn't know he had a child by ANH, but during the attack on the deathstar he knew the pilot was a force user. it wasn't until after luke blew up the deathstar and became famous that vader found out the name of the pilot to be luke skywalker.