On the Chern-Weil homomorphism and the continuous cohomology of Lie-groups