A heat dissipating device includes a circuit board (23), an electronic
component (24) being arranged on the circuit board, a base (211) being
thermally attached to the electronic component, and a plurality of
fasteners (22). The circuit board defines a plurality of screw holes
(230) therein. The base defines a plurality of through holes (213)
corresponding to the screw holes of the circuit board. Each fastener
includes a bolt (27) extending through a corresponding through hole of
the base and then threadly engaging into a corresponding screw hole of
the circuit board, and a coil spring (28) mounted around the bolt. The
base forms a plurality of latch hooks (214) near each through hole. A
bottom ring (222) of the coil spring is sandwiched between the latch
hooks and the base.