The horse checks and forces the general; the cannon then fires over the same horse.
Check, then fire
Black's general stands on d8 and the Red cannon on h8 looks along rank 8. Red's horse on g5 can jump to f7. Red's general is on e0.
Movesg5f7 d8d7 h8h7
g5f7 The horse attacks d8. Black cannot go to e8: that would put the generals face to face on the e-file. The only move is d7.
d8d7 Forced.
h8h7 The cannon fires along rank 7 over the horse on f7. The general cannot go to d8 (the horse covers it) or to e7 (the cannon covers it and the generals would face each other). Checkmate.
Start the combination with a forcing move, a check, so that the defender has no time to prepare. A good horse check also becomes the screen for the next attacker.
The pattern
A horse checks and leaves the general one legal move.
A cannon stands on the rank the general will land on, behind the horse.
The horse is now the screen of the cannon and keeps guarding the other points.