Let A be a commutative *-algebra. Under certain conditions on the involution, we construct a topology making A a Hausdorff Q-ring with continuous involution and inversion; this topology is induced by an A-valued norm.Applying the previous considerations to the algebra C(X) of continuous complex-valued functions over a topological space X, we obtain a new characterization of Weierstrass spaces.Furthermore, we provide every projective finitely generated module M over a topological ring R with a unique topology, under which M is a topological R-module and every R-linear map f : M --* N is continuous, for any topological R-module N. In case R = A, we prove that this topology is induced by an A-norm.