The Duke and Duchess of Cambridge bring joy to a cancer sufferer who has recently been told he has 12 weeks to live.