[en] In this paper, we consider the damped harmonic oscillator with a time-dependent damping constant and a time-dependent angular frequency, which is actually the generalized Caldirola-Kanai Hamiltonian. For some choices of the time-dependent damping constant and the time-dependent angular frequency, we investigate the exact solutions. We also obtain the corresponding conserved quantities and finally discuss the quantum damped harmonic oscillator with a time-dependent damping constant and a time-dependent angular frequency.