The function is essentially the same, but the largest difference is the way they mount to the vehicle. The strut design acts an integral part of the suspension by replacing the upper control arm and acting as a pivot point for the steering.
The shock design is used in addition to the suspension and steering components.