The giant dipole resonance in C-12 and Si-28 is studied in the frame o
f the continuum random-phase-approximation theory. The behaviour of th
e resonance is analized for a momentum dependent particle-hole interac
tion of the Skyrme form. The predictions of the theory for the total p
hotonuclear cross section and other photonuclear processes using diffe
rent parametrizations of the p-h interaction are studied and the exper
imental data are compared with the calculations performed with the Sky
rme-parametrization that best fits them.